Hello i've made a big mistake with may key pairs on a ec2 Instance. I can't connect with sftp and putty because the private key is wrong.
How can i get access to my instances or change the key pairs at the console?
Steps:
/dev/sdf
is the default)./home/ec2-user/.ssh
and /etc/ssh
from the new volume to the old volumeNow you can use the new key pair you generated for the new instance, to connect to your old one.
This did work for me and just a few notes:
I think you need to rebuild the instance with a old(correct) key pair.
http://docs.amazonwebservices.com/AWSSecurityCredentials/1.0/AboutAWSCredentials.html#EC2KeyPairs
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