我正在尝试从 centos 7 机器 ssh 进入我的 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).