加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

亚马逊ec2 – 所有地区的单一关键词

发布时间:2020-12-14 00:49:59 所属栏目:百科 来源:网络整理
导读:我可以在所有地区使用相同的密钥对文件吗?我想保持ssh访问尽可能简单. 我已经为每个地区设置了一个文件.我试图在不同的地区上传相同的文件,但它并没有按预期的方式工作. 这是不可能的,当使用由 Amazon EC2生成的keypairs,但同时已通过使用您自己的键盘启用,
我可以在所有地区使用相同的密钥对文件吗?我想保持ssh访问尽可能简单.

我已经为每个地区设置了一个文件.我试图在不同的地区上传相同的文件,但它并没有按预期的方式工作.

这是不可能的,当使用由 Amazon EC2生成的keypairs,但同时已通过使用您自己的键盘启用,请参阅介绍性帖子 New Amazon EC2 Feature: Bring Your Own Keypair:

You can now import your own RSA keypair (or the public half,to be
precise) for use with your 07000 instances.

Why would you want to do this? Here are a couple of reasons:

  1. Trust – By importing your own keypair you can ensure that you have
    complete control over your keys.
  2. Security -You can be confident that
    your private key has never been transmitted over the wire.
  3. Management of Multiple Regions – You can use the same public key across multiple
    AWS Regions.
    [emphasis mine]

这种方法实际上是非常有益的/方便的 – 我已经使用了很长一段时间了,而且它确实有助于EC2的工作.

Eric Hammond在他的文章Uploading Personal ssh Keys to Amazon EC2中提供了更多的细节和简短的教程:

Amazon recently launched the ability to upload your own ssh public key
to EC2 so that it can be passed to new instances when they are
launched. Prior to this you always had to use an ssh keypair that was
generated by Amazon.

因此,我建议遵循他的文章,了解实现这一点所需的(少数和简单的)步骤.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读