Follow this guide to generate an SSH private/public key pair, retrieve it, or send it to a client machine.
# 1) Generate an SSH Key
ssh-keygen -t rsa
# 2) Answer the prompt asking where to save the file (hit enter to save to the default location - recommended)
# 3) Provide a password to accompany your SSH key (recommended)
# 4) Copy your public SSH key (use this to paste in your favorite version control software, etc)
pbcopy < ~/.ssh/id_rsa.pub
# 5) Optional: Send that newly generated key to a client device
ssh-copy-id <username>@<host>
Tired of typing in your SSH passphrase? Get rid of it!
NOTE: This process will need to be done on each login.
ssh-add
# If you need to specify the SSH location/file, use the following
ssh-add -K ~/.ssh/id_rsa