亚马逊EC2密钥对恢复 [英] Amazon EC2 keypair recovery

查看:349
本文介绍了亚马逊EC2密钥对恢复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要知道的任何方式来访问一个正在运行的实例在Amazon EC2上。

I need to know of any way to access a running instance in Amazon EC2.

  • 在我没有原来的密钥对质子交换膜文件
  • 在我有机会获得AWS管理控制台
  • 在终止/重新启动是不可行

最近我的问题我已经找到了<一个href="http://stackoverflow.com/questions/2181691/on-amazon-ec2-is-it-possible-to-reassign-a-keypair-to-an-already-running-instance">this但我希望,因为一切都变了。

the closest to my question I have found was this but I hope things have changed since.

有没有办法下载一个PEM文件或指定一个新的密钥对?

is there any way to download that pem file or assign a new keypair?

推荐答案

该密钥对只能使用一次从亚马逊,presumably出于安全考虑下载。你可以做的,是通过正常分配你的弹性IP的一个实例和路由流量。快照实例,并带来了一个重复的一个新的密钥对。切换弹性IP到新的实例。这不是特别优雅,但不是完全关闭的停机时间要少得多。

The keypairs can only be downloaded once from Amazon, presumably for security reasons. What you could do, is assign one of your Elastic IP's to the instance and route traffic through that normally. Snapshot the instance and bring up a duplicate with a new Keypair. Switch the Elastic IP over to the new instance. This is not particularly elegant, but is much less downtime than a full shutdown.

请注意:如果您分配弹性IP的情况下,它会覆盖当前的公网IP​​,所以你必须确保更新DNS以及

Note: If you assign the Elastic IP to the instance, it will override the current public IP, so you will have to make sure to update DNS as well.

这篇关于亚马逊EC2密钥对恢复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆