grimoire

personal wiki
git clone git://git.pyratebeard.net/grimoire.git
Log | Files | Refs

commit d024a0424ee1c420cf8af09b2a31bee4f9b376a8
parent a26b8f4f2f8f1b2786be32d2e05fe28b3a92eafa
Author: pyratebeard <root@pyratebeard.net>
Date:   Thu, 13 Dec 2018 13:14:14 +0000

'remote host id' section - command to remove host from 'known_hosts'

Diffstat:
Mtechnology/linux/general/ssh.md | 7+++++++
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' +## 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' +``` +ssh-keygen -f $HOME/.ssh/known_hosts -R <hostname> +``` + ## ref [ssh][] guide