Author: pyratebeard <email@example.com>
Date: Fri, 21 Jun 2019 11:03:43 +0100
ssh host key fingerprint command
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/technology/linux/general/ssh.md b/technology/linux/general/ssh.md
@@ -34,6 +34,13 @@ ssh -X user@host
- on server side `X11Forwarding` must be set to `yes` in '/etc/ssh/sshd_config'
+## ssh host fingerprint
+to find the fingerprint of a host
+sudo ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key
+sudo ssh-keygen -l -f /etc/ssh/ssh_host_ecdsa_key
## remote host id has changed
if the fingerprint for the remote host has changed (and you are sure it's not
a mitm attack) run the following to remove from 'known_hosts'