Created
June 11, 2015 19:43
-
-
Save mpalpha/0c1afc45be5eb2883374 to your computer and use it in GitHub Desktop.
generate ssh key on osx
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
in terminal: | |
go to the home directory | |
1) cd ~/ | |
create ssh directory | |
2) mkdir .ssh | |
go to the .ssh directory | |
3) cd .ssh | |
generate an ssh key | |
4) ssh-keygen -t rsa -C "<userid>@<domain>" | |
choose a file name for the ssh key | |
5) enter "id_rsa" as the file name | |
add your key to the ssh-agent | |
6) ssh-add ~/ssh/id_rsa | |
copy your ssh key into the clipboard (for github etc) | |
*) pbcopy < ~/.ssh/id_rsa.pub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment