Working with SSH can seem quite daunting at first. With a little guidance, you can soon master this secure way of accessing your server. This guide is for Mac OS.

 Create a key pair

Manually generating your SSH key in Mac OS X

On a Mac, open the Terminal Application to access the text-based command line interface to the Unix shell of Mac OS.

The Terminal window opens with the command line prompt and displays the name of your machine and your username.

Generate SSH keys

ssh-keygen -t rsa

Copy your key

Use the following command to copy your key to your clipboard.

pbcopy < ~/.ssh/id_rsa.pub

Please note, the command pbcopy does not provide you with any visual indicator that it actually copied the key to the clipboard. So don't be alarmed that it didn't work, go ahead and run that command and then paste the results into a message to us.

Did this answer your question?