无法使用密钥SSH到亚马逊EC2实例(权限被拒绝)

时间:2019-05-13 13:48:46

标签: amazon-ec2 ssh

我正在Amazon EC-2中设置wordpress服务器,并创建一个密钥对,并尝试在Windows 10中SSH我的实例。

ssh -vvv -i "TestWordPress01.pem" ec2-user@ec2-xx-xx-xx-xxx.ap-southeast-1.compute.amazonaws.com

debug3: Bad permissions. Try removing permissions for user: S-1-5-11 on file TestWordPress01.pem.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions for 'TestWordPress01.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 "TestWordPress01.pem": bad permissions
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.

ec2-user@ec2-xx-xx-xx-xxx.ap-southeast-1.compute.amazonaws.com:权限被拒绝(公钥)。

我已经使用

设置了pem文件

“授权用户”->只读

“系统”->完全控制

“管理员”->完全控制

有什么办法解决吗?

0 个答案:

没有答案
相关问题