Updating SSH Fingerprints

Background

I recently needed to format & reinstall a problem debian installation on my RPI. Since the router’s DHCP server recognized the MAC

So upon connecting to the RPI’s SSH daemon, I was presented with:

Fingerprint Error
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$ ssh pi@192.168.11.49
  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
  Someone could be eavesdropping on you right now (man-in-the-middle attack)!
  It is also possible that a host key has just been changed.
  The fingerprint for the RSA key sent by the remote host is
  7d:d2:85:c6:b9:0f:ae:1a:ff:0e:29:57:d6:92:09:22.
  Please contact your system administrator.
  Add correct host key in /Users/Chris/.ssh/known_hosts to get rid of this message.
  Offending RSA key in /Users/Chris/.ssh/known_hosts:25
  RSA host key for 192.168.11.49 has changed and you have requested strict checking.
  Host key verification failed.

Remove the outdated fingerprint

Automated Removal
1
sed -i "25 d" ~/.known_hosts

Where ‘25’ is the outdated fingerprint’s line number, listed in the output.

And that’s it, log back in, verify the fingerprint and accept.

Next up, install Mosh!