简体   繁体   中英

SSH fails after changing Amazon EC2 instance region

When I created the EC2 instance, the default region was us-west. Then when the instance is running, I changed it to us-east, and the public DNS was also changed.

However, I SSH using the new DNS in putty, and it displays server refuses the key. If I switch back to us-west region, it shows the original DNS. Does anyone know why I cannot connect EC2 using us-east?

It sounds like the only way this could have happened is that if you created a similar instance in a new region. In which case your keypairs are different. You need to use the specific keypair for the region that you created it for.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM