运行ssh时权限被拒绝错误

时间:2017-02-22 15:51:24

标签: amazon-ec2 superuser

我正试图从一台centos 7机器进入我的ec2实例。我已将.pem文件添加到.ssh文件夹。

我错过了什么吗?

[root@localhost .ssh]# cd /home/###/.ssh/
[root@localhost .ssh]# ls
##.pem

root@localhost .ssh]# ssh centos@10.100.140.52 -vvv


debug1: Trying private key: /root/.ssh/id_rsa
debug3: no such identity: /root/.ssh/id_rsa: No such file or directory
debug1: Trying private key: /root/.ssh/id_dsa
debug3: no such identity: /root/.ssh/id_dsa: No such file or directory
debug1: Trying private key: /root/.ssh/id_ecdsa
debug3: no such identity: /root/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: /root/.ssh/id_ed25519
debug3: no such identity: /root/.ssh/id_ed25519: No such file or directory
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

0 个答案:

没有答案