EC2 SSH许可拒绝

发布于 2025-01-23 06:23:21 字数 980 浏览 0 评论 0原文

我创建了密钥对: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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文