Created
July 6, 2019 19:24
-
-
Save 91pavan/7fe3171aa5da2fc712990b10c751b63b to your computer and use it in GitHub Desktop.
How to create a pem file from scratch for a linux target machine
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
ssh-keygen -f identifier -m PEM -t rsa # execute on your laptop | |
ssh-copy-id -i identifier.pub ubuntu@target_machine # copy the .pub file to target machine | |
mv identifier identifer.pem # change name to .pem | |
chmod 600 identifier.pem # change permissions | |
ssh -i identifer.pem ubuntu@target_machine # ssh using the new created pem file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment