私はec2インスタンスをcentos 7マシンからsshにしようとしています。 .pemファイルを.sshフォルダに追加しました。sshの実行中に許可が拒否されました
私に何か不足していますか?
[[email protected] .ssh]# cd /home/###/.ssh/
[[email protected] .ssh]# ls
##.pem
[email protected] .ssh]# ssh [email protected] -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).
'sudo'を実行してみましたか? – Option
https://wiki.centos.org/HowTos/Network/SecuringSSHを参照してください。特に、適切なファイルを正しくCHMODしてください –