Skip to content

Instantly share code, notes, and snippets.

@stinoga
Created August 1, 2012 01:58
Show Gist options
  • Save stinoga/3222715 to your computer and use it in GitHub Desktop.
Save stinoga/3222715 to your computer and use it in GitHub Desktop.
Saving SSH keys on Mac
# Run this in terminal to generate a key on your local machine
ssh-keygen -t rsa
# Next, SSH into your site and and copy the contents of the local file ~/.ssh/mykey.pub to the remote file ~/.ssh/authorized_keys
# I use vi for this, and you can have multiple keys in one file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment