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

我可以在所有地区使用相同的密钥对文件吗?我想保持ssh访问尽可能简单.

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

@H_403_6@ 这是不可能的,当使用由 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.

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

相关文章

适配器模式将一个类的接口转换成客户期望的另一个接口,使得原本接口不兼容的类可以相互合作。
策略模式定义了一系列算法族,并封装在类中,它们之间可以互相替换,此模式让算法的变化独立于使用算法...
设计模式讲的是如何编写可扩展、可维护、可读的高质量代码,它是针对软件开发中经常遇到的一些设计问题...
模板方法模式在一个方法中定义一个算法的骨架,而将一些步骤延迟到子类中,使得子类可以在不改变算法结...
迭代器模式提供了一种方法,用于遍历集合对象中的元素,而又不暴露其内部的细节。
外观模式又叫门面模式,它提供了一个统一的(高层)接口,用来访问子系统中的一群接口,使得子系统更容...