We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Before running this command -> ssh-copy-id -f "-o IdentityFile " ubuntu@
Follow these steps to add your SSH .pem file and avoid manually entering the key each time you connect to your EC2 instance.
sudo ssh-add ~/Downloads/id_rsa.pem
mv ~/Downloads/id_rsa.pem ~/.ssh/id_rsa.pem
chmod 400 ~/.ssh/id_rsa.pem
sudo ssh-add ~/.ssh/id_rsa.pem
ssh ec2-user@
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Before running this command -> ssh-copy-id -f "-o IdentityFile " ubuntu@
Follow these steps to add your SSH .pem file and avoid manually entering the key each time you connect to your EC2 instance.
1. Add the SSH key to the SSH agent
sudo ssh-add ~/Downloads/id_rsa.pem
2. Move the SSH key to the .ssh directory
mv ~/Downloads/id_rsa.pem ~/.ssh/id_rsa.pem
3. Set correct permissions for the private key (restrict access)
chmod 400 ~/.ssh/id_rsa.pem
4. Add the key to the SSH agent again (if necessary)
sudo ssh-add ~/.ssh/id_rsa.pem
ssh ec2-user@
The text was updated successfully, but these errors were encountered: