亚马逊EC2失去了私钥,如何获得对服务器的访问? [英] Amazon EC2 lost private key, how to get access to the server?

查看:2057
本文介绍了亚马逊EC2失去了私钥,如何获得对服务器的访问?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的电脑是前天被偷了,我在把我的一个服务器私钥,关键是密码保护,所以应该没问题。但问题是,现在我不能访问服务器。

   服务器是Ubuntu的,亚马逊EC2, root设备:实例存储我一直在寻找这样了一整天,看起来就像如果服务器是EBS,那么它会更容易只创建一个图像并推出一个新的实例。但不幸的是我的不是。

   我真的希望有人可以给我如何才能访问服务器的提醒,我的用户类型为根,所以没有人可以修改密钥给我。

   我不知道你能不能从公开密钥创建私有密钥,我不知道你是否能真正得到从亚马逊EC2公共密钥。请大家帮帮忙。

   非常感谢你!

My computer was stolen the day before yesterday, and I put one of my servers private key in that, the key is password protected, so it should be OK. But the problem is that now I can not access the server.

The server is Ubuntu, Amazon EC2, Root Device: Instance Store. I've been searching this for a whole day, looks like if the server is EBS, then it will be easier to just create an image and launch a new instance. But unfortunately mine is not.

I really hope that some one can give me an advise on how to get access to the server, my user type is root, so no one else can modify the key for me.

I don't know if you can create private key from the public key, and I don't know if you can actually get the public key from Amazon EC2. Please help.

Thank you very much!

推荐答案

试着这样做:

登录到您的 AWS管理控制台,在 EC2 设置页视图,你会发现像 1的密钥对,点击它,删除旧的密钥对,然后创建新的对。

Login to your AWS Management Console, in EC2 tab view, you'll find something like 1 key Pair, click it, delete your old key pair, then create new pair.

编辑:

有一个相关的问题这里

你可以做的,是通过正常分配你的弹性IP的一个实例和路由流量。快照实例,并带来了一个重复的一个新的密钥对。切换弹性IP到新的实例。

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.

和<一href="http://stackoverflow.com/questions/2181691/on-amazon-ec2-is-it-possible-to-reassign-a-keypair-to-an-already-running-instanc">HERE

我们已经能够拿出最好的解决方案是从正在运行的实例刻录AMI并从该AMI使用新的密钥对启动一个新的实例。

The best solution we have been able to come up with is to burn an AMI from the running instance and launch a new instance from that AMI using the new key pair.

如何创建自己的AMI? <一href="http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/creating-an-ami.html?r=8284">HERE. ;)

How to create your own AMI? HERE. ;)

这篇关于亚马逊EC2失去了私钥,如何获得对服务器的访问?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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