Regenerating SSH keys on Linux - lmmx/devnotes GitHub Wiki

GitHub

Just use the official guide - but all important: save to keychain to retain the authorised ssh-agent across sessions

ssh-add -k ~/.ssh/id_rsa

(I think Mac may be capital -K?)

The key commands involved are

ssh-keygen -t ed25519 -C "[email protected]"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
xclip -selection clipboard < ~/.ssh/id_ed25519.pub

GitLab

In 2020 I moved to GitLab for site generation, where SSH keys are ED25519 not RSA ("more secure and performant")