Creating an ssh key

By Jake Morrison in DevOps on Tue 01 January 2019

Instead of using passwords, it's more secure to use ssh keys to control access to servers. It also makes it easier to automate systems using tools like Ansible.

To create an ssh key, on macOS or Linux, open up a terminal and type:

ssh-keygen -t rsa -b 4096 -C ""

Set a pass phrase to protect access to your key (optional but recommended). the desktop will remember your pass phrase in the keyring when you log in so you don't have to enter it every time.

Your ssh key is also used to control access to GitHub. See the GitHub docs.