0

I get this error after enabling ssh in cisco switch.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
a6:90:00:e1:b2:05:75:ce:48:ed:15:10:bd:51:90:a2.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:5
RSA host key for 172.10.77.126 has changed and you have requested strict checking.
Host key verification failed.

How can I access the switch from linux box. It seems that I need to copy public key from cisco switch to /root/.ssh/known_host but from where can I get the public key in cisco router

Hennes
  • 65,804
  • 7
  • 115
  • 169
munish
  • 1,023

1 Answers1

3

Try deleting line 5 in /root/.ssh/known_hosts!

EDIT: Please also consider what @FrankThomas said in the comments to your question

fpnick
  • 616