Created
January 3, 2017 17:53
-
-
Save hermes-pimentel/1347d2ac5ceaeb3038723006b7e8a82c to your computer and use it in GitHub Desktop.
Change ec2 .pem file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) copy key to new instance. My-new-key.pem to .ssh | |
2) change permissions (chmod 400) | |
3) run as ec2-user/centos/ubuntu: | |
cd .ssh | |
ssh-keygen -f My-new-key.pem -y >> authorized_keys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment