Got it

Failed SSH access

Created: Nov 26, 2019 16:07:15Latest reply: Dec 2, 2019 15:42:14 209 2 0 0
  Rewarded HiCoins: 0 (problem resolved)

Hi,


I got this error when trying to connect to a s57200 switch with ssh :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@    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

SHA256:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.

Please contact your system administrator.

Add correct host key in /root/.ssh/known_hosts to get rid of this message.

Offending RSA key in /root/.ssh/known_hosts:293

  remove with:

  ssh-keygen -f "/root/.ssh/known_hosts" -R 10.X.X.X

RSA host key for 10.X.X.X has changed and you have requested strict checking.

Host key verification failed.


Any idea how to resolve this please ?

Thank you.

  • x
  • convention:

Featured Answers

Recommended answer

Popeye_Wang
Admin Created Nov 27, 2019 01:53:56 Helpful(1) Helpful(1)

Hi user_3606116,

Just edit ~/.ssh/known_hosts and delete line 293, as the message pointed you:

Offending RSA key in /root/.ssh/known_hosts:293


or use ssh-keygen to delete the invalid key

 ssh-keygen -R "the server hostname or ip"


View more
  • x
  • convention:

All Answers
Popeye_Wang
Popeye_Wang Admin Created Nov 27, 2019 01:53:56 Helpful(1) Helpful(1)

Hi user_3606116,

Just edit ~/.ssh/known_hosts and delete line 293, as the message pointed you:

Offending RSA key in /root/.ssh/known_hosts:293


or use ssh-keygen to delete the invalid key

 ssh-keygen -R "the server hostname or ip"


View more
  • x
  • convention:

user_3606116
user_3606116 Created Dec 2, 2019 15:42:14 Helpful(0) Helpful(0)

Hi ,

I 've tried ssh-keygen -R 10.X.X.X and it worked

thank you
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."

My Followers

Login and enjoy all the member benefits

Login

Huawei Enterprise Support Community
Huawei Enterprise Support Community
Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.