fixing the WARNING: UNPROTECTED PRIVATE KEY FILE. Permission denied)
You need to know the .pem file folder you download, and then follow steps below:
- download the keypair(.pem file)
cd to keypair(.pem file) location (Note that you can use absolute path name for key pair instead)
- ssh ec2-user@publicIP
- ssh -i .pem ec2-user@publicIP
- chmod 0400 [your_key_name].pem (Note that to make SSH work, your key must not be publicly viewable. Use this command if needed.)
Тэги:
#permission_denied_aws #warning #aws_instances