Skip to content

Instantly share code, notes, and snippets.

@mpalpha
Created June 11, 2015 19:43
Show Gist options
  • Save mpalpha/0c1afc45be5eb2883374 to your computer and use it in GitHub Desktop.
Save mpalpha/0c1afc45be5eb2883374 to your computer and use it in GitHub Desktop.
generate ssh key on osx
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