創建 ec2 實例後,我嘗試ssh
使用私鑰進入端口,但即使我chmod
將密鑰設為400
,我也會收到此錯誤。
vagrant@ubuntu-bionic:/vagrant$ chmod 400 ./itmo-544-2019.pem
vagrant@ubuntu-bionic:/vagrant$ ssh -i ./itmo-544-2019.pem ubuntu@<ip-address>
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0555 for './itmo-544-2019.pem' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "./itmo-544-2019.pem": bad permissions
[email protected]: Permission denied (publickey).
我確保私鑰以
-----BEGIN RSA PRIVATE KEY-----
並以
-----END RSA PRIVATE KEY-----
我也嘗試過chmod 600 ./itmo-544-2019.pem
。但這也沒有幫助。
知道為什麼嗎?