我正在尝试连接到AWS实例并收到以下错误。
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).
我无法更改文件的权限,因为我使用的是Ubuntu Live CD。 “shantanuo.pem”的文件权限是唯一的问题吗?
答案 0 :(得分:0)
您可以尝试将 pem 文件权限更改为400
。