Cross region for EC2 key pair

Photo by Sigmund on Unsplash

Cross region for EC2 key pair

AWS/Cross Region

  • outline

You can use same EC2 key pair by importing on Cross region

  • how-to
Source Region
## EC2 login using the keypair you want to import
>> cp ~/.ssh/authorized_keys <key-pair-name>.pub
>> save local filesystem

Destination Region
>> EC2 Conosle Key pair
>> Action >>  Import Key Pair
>> Import <key-pair-name>.pub & Contents
  • note

Use key pair of the same name for Source and Destination.