前天我的电脑被偷了,我把我的一个服务器的私钥放在里面,这个私钥有密码保护,所以应该没问题。但问题是现在我无法访问服务器。
服务器是Ubuntu, Amazon EC2, Root Device: Instance Store. 找了一整天,好像服务器是EBS的话,直接做个镜像就简单多了并启动一个新实例。但不幸的是我的不是。
我真的希望有人能给我一个关于如何访问服务器的建议,我的用户类型是 root,所以没有人可以为我修改 key 。
我不知道您是否可以从公钥创建私钥,我不知道您是否真的可以从 Amazon EC2 获取公钥。请帮忙。
非常感谢!
尝试这样做:
登录到您的 AWS Management Console ,在 EC2
选项卡 View 中,您会找到类似 1 key Pair
的内容,单击它,删除旧 key 对,然后创建新 key 对。
编辑:
有相关问题HERE
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.
和HERE
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? HERE . ;)