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

我可以在所有地区使用相同的密钥对文件吗?我想保持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.

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

相关文章

迭代器模式(Iterator)迭代器模式(Iterator)[Cursor]意图...
高性能IO模型浅析服务器端编程经常需要构造高性能的IO模型,...
策略模式(Strategy)策略模式(Strategy)[Policy]意图:定...
访问者模式(Visitor)访问者模式(Visitor)意图:表示一个...
命令模式(Command)命令模式(Command)[Action/Transactio...
生成器模式(Builder)生成器模式(Builder)意图:将一个对...