system/notes/ssh.md

379 B

Get key for machine

ssh-keyscan <host>

If you want to get key for the current machine you can use the following code

ssh-keyscan localhost

Generate new ssh key

ssh-keygen -t ed25519 -C "bob@example.com"

Remove ssh key

gpg-connect-agent
KEYINFO --ssh-list --ssh-fpr
DELETE_KEY XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX