1. Generate an SSH key-pair
First up, generate yourself an SSH key pair - unless you already have one you can reuse, in which case skip this step.
Notes on this step:
- Replace anything in block caps below with something meaningful - it's just a comment that gets stored with the key to help you tell what it's used for in the future.
- It will ask you if you want to password-protect (i.e. encrypt) the private half of the key pair. If you're using a Mac, I recommend you set a password as Git integrates with the MacOS keychain really nicely. I'm not familiar with how to setup 'transparent' password-protected private keys on other operating systems, so best to just set no password unless you know what you're doing.
ssh-keygen -t rsa -b 4096 -C "YOUR_NAME github key YOUR_EMAIL_ADDRESS@DOMAIN.COM" -f ~/.ssh/id_rsa_github