为什么 PuTTy SSH 客户端不再连接到 EC2 实例?
我一直在使用我的实例私钥文件(但为 Putty 转换为 .ppk 格式)通过 ssh 进入我的 ec2 实例。但是,从管理控制台生成证书密钥文件后,putty 连接停止工作。它会一直告诉我网络连接超时,或者我只是被拒绝访问。我不知道为什么这会突然改变,因为我没有对实例本身或原始私钥文件进行任何更改。
I had been using my instances private key file (but converted to .ppk format for Putty) to ssh into my ec2 instance. However, after generating the cert key file from the management console, the putty connection stopped working. It would keep telling me the network connection timed out, or that I just get access denied. I don't know why this would suddenly change, as I didn't change anything with the instance itself or the original private key file.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你的评论已经说出了答案。
EC2 实例启动后,会在启动时为其分配一个公共和私有 IP 地址。实例的私有 IP 地址在该实例的生命周期内永远不会改变。但是,其公共 IP 地址在某些情况下可能会发生变化。
注意:公共和私有 DNS 名称是根据实例的公共和私有 IP 地址构建的。因此,如果实例的公共 IP 地址发生更改,公共 DNS 名称也会相应更改。
Your comment said the answer.
Once an EC2 instance is launched, it's assigned a public and private IP address at boot time. An instance's private IP address will never change during the lifetime of that instance. However, its public IP address can change under certain circumstances.
Note: Public and private DNS names are constructed based upon an instance's public and private IP addresses. So, if an instance's public IP address changes, the public DNS name will also change accordingly.