GitHub and ssh keys

Make sure Git is installed

  1. Set git username (email) and email locally

  2. Generate a new shh key pair on your machine, then upload the public key to Github. I followed these instructions, creating an ssh key locally, with a passphrase that I stored in my Keepass database.

  3. In the bashrc included in this repo is some code that handles your ssh-agent. I got it from this section of the Arch Linux wiki. Here's the bash code if you need:

if ! pgrep -u "$USER" ssh-agent > /dev/null; then
    ssh-agent > ~/.ssh-agent-thing
if [[ "$SSH_AGENT_PID" == "" ]]; then
    eval "$(<~/.ssh-agent-thing)"
  1. touch ~/.ssh/config and in that file write AddKeysToAgent yes, as per the Arch wiki entry.

Alternatively, you could try storing ssh key in KeePassXC database, but I haven't had luck with that in the past.

Given this setup, you're going to want to use the ssh URL ( when cloning down repos from GitHub (as opposed to HTTPS).