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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With