- Windows Users: Run this configuration within WSL Ubuntu.
- MacOS Users: Run this configuration using the Terminal.
From your Terminal/WSL command-line, create a new RSA keypair:
ssh-keygen -t rsa
Follow the prompts.
- If you already have an
id_rsa
keypair, you should name your new keys something different. - You do not need to set up a passphrase with this keypair.
cd
into your.ssh
directory and inspect the new keys.
-
cat
out the contents of the public key and copy it to your clipboardcat ~/.ssh/id_rsa.pub
-
Go to your GitHub SSH Keys page in Settings.
-
Click the New SSH Key button. Give it a name, and paste the contents of your public key into the "key" field.
-
Save new key. You can now run
git push
andgit pull
commands to GitHub without any further authentication.