Created
August 1, 2012 01:58
-
-
Save stinoga/3222715 to your computer and use it in GitHub Desktop.
Saving SSH keys on Mac
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
# 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