GitHub and ssh keys
Make sure Git is installed
Set git username (email) and email locally
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.
bashrcincluded 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 fi if [[ "$SSH_AGENT_PID" == "" ]]; then eval "$(<~/.ssh-agent-thing)" fi
touch ~/.ssh/configand 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 (
firstname.lastname@example.org:sts10/terminal_and_vim_settings.git) when cloning down repos from GitHub (as opposed to HTTPS).