linux - Amazon EC2 私钥丢失,如何访问服务器?

标签 linux ubuntu ssh amazon-ec2 private-key

<分区>

前天我的电脑被偷了,我把我的一个服务器的私钥放在里面,这个私钥有密码保护,所以应该没问题。但问题是现在我无法访问服务器。

服务器是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 . ;)

关于linux - Amazon EC2 私钥丢失,如何访问服务器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10369547/

相关文章:

php - 如何通过 SSH 隧道将 PHP/Codeigniter 应用程序连接到远程 MySQL 数据库?

linux - 运行 hadoop 集群时在 Google Cloud Platform 上获取 'sudo: unknown user: hadoop' 和 'sudo: unable to initialize policy plugin error'

python - 我在 Linux 下获取 getpass.getpass() 时遇到问题

linux - 使用 logrotate 每小时轮换文件?

ubuntu - 如何在 Ubuntu 上安装 web3?

java - JDBC 类未找到异常

python - 如何一步退出并运行Python IDLE shell

ubuntu - 在 Ubuntu 上为 Pharo/Seaside 部署设置什么文件权限和所有者

Golang SSH 加载 LD_PRELOAD 和 LD_LIBRARY_PATH 环境变量

linux - 如何将文件从通过 SSH 连接的计算机移动到 VPS?