Skip to content

Instantly share code, notes, and snippets.

@rynmrtn
Created October 12, 2010 20:09
Show Gist options
  • Save rynmrtn/622819 to your computer and use it in GitHub Desktop.
Save rynmrtn/622819 to your computer and use it in GitHub Desktop.
# Generate a Key
$ ssh-keygen -t rsa
# Create the .ssh folder on the remote machine w/ the user & setup permisisons
$ mkdir .ssh
$ chmod 700 .ssh
# Copy key to another server
$ cat .ssh/id_rsa.pub | ssh deploy@location.com "cat >> .ssh/authorized_keys2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment