EC2密钥对更改 [英] EC2 Key Pair Change

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

问题描述

我见过几个问题和有关更改EC2密钥对正在运行的实例的答案。不过我是一个完整的AWS新手在这一点上,我可以很容易地停止正在运行的实例,并重新启动它。这不是我们的情况下的一个问题。

I have seen several questions and answers about changing the EC2 key pair for a running instance. However I am a complete AWS newbie at this point and I can easily stop the running instance and restart it. That's not a problem in our situation.

是否可以停止正在运行的EC2实例并以某种方式改变密钥对,然后重新启动它的一个EBS支持的实例?我们也使用弹性IP在这种情况下,所以我看不到停止实例并重新启动任何缺点,但改变密钥对的大多数讨论认为重新启动一个实例是困难的。

Is it possible to stop a running EC2 instance and somehow change the key pair and then start it again on an EBS-backed instance? We are also using an elastic IP on this instance so I can't see any downside of stopping the instance and restarting, but most discussions of changing the key pair assume that restarting an instance is difficult.

我不是一个OPS的人,我想起床的速度后,我们最近的EC2人已离开公司。

I'm not an ops person, I'm trying to get up to speed after our recent EC2 person has left the company.

在此先感谢!

推荐答案

没有,你不能改变密钥对使用AWS管理控制台的一个实例。更改密钥的唯一的办法就是在这里解释:更改密钥对EC2实例

No, you can't change the key pair for an instance using AWS management console. The only way to change the key is explained here: Change key pair for ec2 instance

在简单地说,SSH密钥是一个文件,在EC2实例通过AWS安装过程中创建的。一旦该文件是存在的,AWS不为之动容。这是只有你谁可以使用它。

In a nutshell, SSH key is a file, created in the EC2 instance by AWS during setup. Once the file is there, AWS is not touching it. It's only you who can work with it.

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

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