简体   繁体   中英

error in connecting to aws service

I am trying to connect to AWS instance and getting the following error.

ubuntu@ubuntu:/media/18AB-992F$ ssh -i shantanuo.pem abc.compute-1.amazonaws.com
The authenticity of host 'abc.compute-1.amazonaws.com (107.22.129.243)' can't be established.
RSA key fingerprint is 0d:f0:ab:53:bb:fc.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'abc.compute-1.amazonaws.com,107.22.129.243' (RSA) to the list of known hosts.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for 'shantanuo.pem' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: shantanuo.pem
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

I am not able to change the permission of the file because I am using Ubuntu Live CD. Is the file permission of "shantanuo.pem" the only issue?

您可以尝试将pem文件权限更改为400

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM