EC2 SSH许可拒绝
我创建了密钥对:EC2>网络&安全>钥匙对>创建密钥对(RSA,.pem)
我有下载文件并更改CHMOD:
chmod 400 file_key_pair.pem
我尝试了以下命令:
ssh -i file_key_pair.pem root@<Public IPv4 DNS>
The authenticity of host 'ec2-54-224-146-117.compute-1.amazonaws.com (54.224.146.117)' can't be established.
ECDSA key fingerprint is SHA256:yWiX5WQUZpHawHGDrYo1gQvwCcrVhT3jbEavgMXoQ88.
Are you sure you want to continue connecting (yes/no/[fingerprint])?
当我写“是”时,我有此响应:
Warning: Permanently added 'ec2-54-224-146-117.compute-1.amazonaws.com,54.224.146.117' (ECDSA) to the list of known hosts.
[email protected]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
我尝试使用用户名root and ec2-user,但这不是工作。
I have create key pairs : EC2 > Network & Security > Key Pairs > Create key pair (RSA, .pem)
I have download file and change chmod :
chmod 400 file_key_pair.pem
I have try this command :
ssh -i file_key_pair.pem root@<Public IPv4 DNS>
The authenticity of host 'ec2-54-224-146-117.compute-1.amazonaws.com (54.224.146.117)' can't be established.
ECDSA key fingerprint is SHA256:yWiX5WQUZpHawHGDrYo1gQvwCcrVhT3jbEavgMXoQ88.
Are you sure you want to continue connecting (yes/no/[fingerprint])?
When i write "yes", i have this response :
Warning: Permanently added 'ec2-54-224-146-117.compute-1.amazonaws.com,54.224.146.117' (ECDSA) to the list of known hosts.
[email protected]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
I have try with username root and ec2-user but that don't work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论