[英]Permission denied (publickey), on Linux AWS server can i fix it?
I got a free tier on aws Linux server which is supposed to work but I get the following error:我在 aws Linux 服务器上获得了一个免费套餐,它应该可以工作,但我收到以下错误:
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0555 for 'vpnserver.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 "vpnserver.pem": bad permissions
root@*amazonaws.com: Permission denied (publickey).
I have tried every possible guide on the internet and still it is like this, do you have a solution for it?我已经尝试了互联网上所有可能的指南,但仍然是这样,您有解决方案吗?
The error is explained in Error: Unprotected private key file . Error: Unprotected private key file中解释了该错误。 You should set your key permissions to 400
, not 555
:您应该将您的密钥权限设置为400
,而不是555
:
chmod 0400 vpnserver.pem
More info about this is also at:有关此的更多信息也位于:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.