Skip to content

Instantly share code, notes, and snippets.

@freemanirl
Created November 5, 2016 13:58
Show Gist options
  • Save freemanirl/7dfac10cdc93a3332772cee4aea191f7 to your computer and use it in GitHub Desktop.
Save freemanirl/7dfac10cdc93a3332772cee4aea191f7 to your computer and use it in GitHub Desktop.
Creating a PEM file for deployment users.
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