Required Commands
I used to frequently reference this before moving to SSH certificates. Still a useful reference when creating keys. For more details, see Gerts blog post linked below.
Create new ed25519 keys:
ssh-keygen -o -a 100 -t ed25519
Create secure rsa keys:
ssh-keygen -t rsa -b 4096 -o -a 100
Find all keys on your system:
for keyfile in ~/.ssh/*.pub; do ssh-keygen -l -f "${keyfile}"; done | uniq
Change or add passphrase to existing keys:
ssh-keygen -f ~/.ssh/id_rsa -p -o -a 100
Start ssh agent on headless server:
exec ssh-agent bash
Leave a comment
Your email address will not be published. Comments are moderated before appearing.