Created
November 5, 2016 13:58
-
-
Save freemanirl/7dfac10cdc93a3332772cee4aea191f7 to your computer and use it in GitHub Desktop.
Creating a PEM file for deployment users.
This file contains 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
su - deploy | |
mkdir .ssh && cd .ssh | |
ssh-keygen -b 2048 -t rsa -f key -C deploy | |
cat > authorized_keys < key.pub | |
chmod 0700 ~/.ssh; chmod 0600 ~/.ssh/authorized_keys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment