SSH / SFTP fingerprint error

· Avaya
Authors

If you see this message when connecting via a secure method then follow the instructions below.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 the DSA host key has just been changed.
The fingerprint for the DSA key sent by the remote host is
67:fd:5e:55:5b:39:36:f8:17:89:77:a0:a5:14:82:76.
Please contact your system administrator.
Add correct host key in /var/home/dadmin/.ssh/known_hosts to get rid of this me.
Offending key in /var/home/dadmin/.ssh/known_hosts:6
DSA host key for <ip-address> has changed and you have requested strict checkin.
Host key verification failed.

From the CM command prompt type;

rm /var/home/dadmin/.ssh/known_hosts

(This removes the whole known hosts file, you get the file path from the message above Offending key in /var/home/dadmin/.ssh/known_hosts:6This maybe different dependant on if the message is from SSH access or SFTP backups for example).

To remove a single entry which can be identified by the error message in this case line 6 “Offending key in /var/home/dadmin/.ssh/known_hosts:6“. Also note the path, again this will change dependant on if it is from SSH access or for SFTP backups.

Type the following;

cd /var/home/dadmin/.ssh/

(This gets you to the directory)

vi known_hosts

(This opens the known hosts in VI you get this from the end part of the error message Offending key in /var/home/dadmin/.ssh/known_hosts:6)

Type

6 G (which is go to line 6 as taken from above message “known_hosts:6)

dd (to delete the line)

ZZ (to quit and save)

All done you should now be able to connect.

3 Comments

Comments RSS
  1. Bob Fitzpatrick

    You can change generate a new key in the GUI for CM. Super Easy

    Liked by 1 person

    • Grizzlys

      Thanks Bob I will check it out, must admit have always done it this way.

      Like

  2. AvayaTech

    ssh-keygen -R

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: