Modify keypair in instances already running
Hi all!
I have a question about the keypaid, I need modify the keypair for security reason, but the documentation I don't found how i can doing it.
I followed the following steps, but I can't found the way de change keypair:
#delete the old kaypair
nova keypair-delete admin
#add the new keypair
nova keypair-add --pub-key .ssh/id_rsa_new.pub admin
#Enter to instance is already running with the old key, and see the metada for information about the new key
curl http://169.254.169.254/2009-04-04/meta-data/public-keys/0/openssh-key
#when run curl commando I can see key old and not the new key
The question is: How can I change the keypair of the instance that is already runnnig with the old key? o What is the best way for this to work?
Any help about this issue is welcome
Thanks