- To generate an ssh key:
cd ~/
ssh-keygen -t rsa
- Press enter to accept the default filename
(/Users/you/.ssh/id_rsa)
- Prompt asks you to create a passphrase. This is optional, either create a passphrase or press enter for no passphrase
- After pressing enter, two files will be created
~/.ssh/id_rsa
and~/.ssh/id_rsa.pub