commit bb9044901acac6859bee9d74a7fcf134f93a308a
parent af75a31662cc76582e92a6ea5a38880b7c1ab3f9
Author: pyratebeard <root@pyratebeard.net>
Date: Fri, 21 Jun 2019 11:03:43 +0100
ssh host key fingerprint command
Diffstat:
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'