Open the Terminal app on Mac.
Change directories so that you are in your user's .ssh
directory. For example, my user directory is named "Eric" so I would type the following into Terminal:
cd /Users/Eric/.ssh
Now you need to generate your SSH key pairs. Enter the following command into Terminal (source 1, source 2):
ssh-keygen -t rsa