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

查看:57
本文介绍了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.

我不是运维人员,在我们最近的 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 密钥是一个文件,由 AWS 在设置期间在 EC2 实例中创建.一旦文件在那里,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天全站免登陆