d024a0424ee1c420cf8af09b2a31bee4f9b376a8
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 | +## remote host id has changed |
|
| 38 | +if the fingerprint for the remote host has changed (and you are sure it's not |
|
| 39 | +a mitm attack) run the following to remove from 'known_hosts' |
|
| 40 | +``` |
|
| 41 | +ssh-keygen -f $HOME/.ssh/known_hosts -R <hostname> |
|
| 42 | +``` |
|
| 43 | + |
|
| 37 | 44 | ## ref |
| 38 | 45 | [ssh][] guide |
| 39 | 46 |