-
Notifications
You must be signed in to change notification settings - Fork 7
Regenerating SSH keys on Linux
Louis Maddox edited this page Feb 1, 2021
·
6 revisions
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
In 2020 I moved to GitLab for site generation, where SSH keys are ED25519 not RSA ("more secure and performant")
- Docs: GitLab and SSH keys
- Guide: Create and add your SSH key pair