d32f90df49002ad45a1f9a97b02af4ec2b490f5d
technology/linux/general/ssh.md
| ... | ... | @@ -34,6 +34,13 @@ ssh -X user@host |
| 34 | 34 | ``` |
| 35 | 35 | - on server side `X11Forwarding` must be set to `yes` in '/etc/ssh/sshd_config' |
| 36 | 36 | |
| 37 | +## ssh host fingerprint |
|
| 38 | +to find the fingerprint of a host |
|
| 39 | +``` |
|
| 40 | +sudo ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key |
|
| 41 | +sudo ssh-keygen -l -f /etc/ssh/ssh_host_ecdsa_key |
|
| 42 | +``` |
|
| 43 | + |
|
| 37 | 44 | ## remote host id has changed |
| 38 | 45 | if the fingerprint for the remote host has changed (and you are sure it's not |
| 39 | 46 | a mitm attack) run the following to remove from 'known_hosts' |