EC2实例PUTTY RE使用的Keypair未被识别

发布于 2025-02-07 15:38:50 字数 562 浏览 0 评论 0 原文

首先,几乎不可能确定这是重复的显示错误的通用性质。这可能是一个非常具体且利基的情况。请不要错误地将其标记为重复。可悲的是,我必须键入此内容:(

我有2个EC2 Ubuntu实例。第一个在6个月前创建并完美工作。

我今天早上创建了第二个Ubuntu实例,并告诉它使用与现有实例相同的Keypair。 所以我认为这两个VPC都可以看到。

'在同一区域(?)中,我从列表中选择了它, “。两者都使用同一密钥对。我只是克隆了我保存的Putty Config并在尝试连接之前更改了公共IP :错误。

:publicKey)确定 新实例

。 AWS文档 说要检查用户名“ ubuntu”和键对名称,这两者都是正确的。

我将把实例吹走并重新开始,但是能够知道AWS在做错什么,以后可以避免问题。

更新:新实例。 。

First up it's nearly impossible to identify if this is a duplicate or not given the generic nature of the displayed error. This is potentially a very specific and niche scenario. Please do not falsely mark this as duplicate. It's sad that I have to type this :(

I have 2 ec2 ubuntu instances. The first one created 6 months ago and working perfectly.

I created a second ubuntu instance this morning and told it to use the same keypair as the existing instance. They're in the same zones(?) but different base vpc. I selected it from the list so I presume it should be visible to both vpc's. From what I could see that should be ok.

Both are ubuntu so the user is "ubuntu". Both are using the same key pair. I merely cloned my saved putty config and changed the public IP before attempting to connect however i'm getting the "PuTTY Fatal Error: Disconnected: No supported authentication methods available (server sent: publickey) OK: error.

Unless i'm mistaken the same .ppk should work for both instances, that's the entire purpose of keypairs. The only thing I can presume is that AWS failed to associate the key pair with the new instance.

What are the likely reasons for this happening?
AWS documentation https://aws.amazon.com/premiumsupport/knowledge-center/linux-credentials-error/
Says to check the username "ubuntu" and key pair name which are both correct.

I'm going to blow the instance away and start again but it would be nice to be able to know what AWS is doing wrong so I can avoid the issue in the future.

Update: New instance... I imported a different pub key and used that and the problem persists when I try and connect with it's associated ppk.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

演出会有结束 2025-02-14 15:38:50

问题是我正在使用的AWS Amazon Machine Image(AMI)。我正在使用最新的Ubuntu ??。当我切换到另一个Ubuntu时,它效果很好。

The issue was the AWS Amazon Machine Image (AMI) I was using. I was using the latest ubuntu??. When I switched to the other ubuntu it worked fine.

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文