diff --git a/pages/common/ssh-keygen.md b/pages/common/ssh-keygen.md index bbabda97c5..7fa33b7602 100644 --- a/pages/common/ssh-keygen.md +++ b/pages/common/ssh-keygen.md @@ -14,7 +14,7 @@ `ssh-keygen -t ed25519 -a 100` -- Generate an RSA 4096 bit key with your email as a comment: +- Generate an RSA 4096 bit key with email as a comment: `ssh-keygen -t rsa -b 4096 -C "{{email}}"` @@ -22,6 +22,10 @@ `ssh-keygen -l -F {{remote_host}}` +- Remove the keys of a host from the known_hosts file (useful when a known host has a new key): + +`ssh-keygen -R {{remote_host}}` + - Retrieve the fingerprint of a key in MD5 Hex: `ssh-keygen -l -E md5 -f ~/.ssh/{{filename}}`