Got it

How Do I Update the Public Key When a Linux Host Fails to Remotely Log In to the Storage System's BMC System via SSH Due to the Invalid Public Key?

180 0 1 0 0

Question

I try to remotely log in to the BMC system of the storage system to be powered on from a Linux host or another storage system via SSH. The system displays a message indicating that the login fails due to the invalid ESDSA host key. How do I update the public key?

Answer

Step 1 View the file path of saving the public key from the command output.

In this example, the public key is saved in the following path: /xxx/.ssh/known_hosts.

host:~ # ssh admin@xxx.xxx.xxx.xxx
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 ECDSA key sent by the remote host is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx [MD5].
Please contact your system administrator.
Add correct host key in /xxx/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /xxx/.ssh/known_hosts:3
ECDSA host key for xxx.xxx.xxx.xxx has changed and you have requested strict checking.
Host key verification failed.


Step 2 Edit the know_hosts file to delete the IP address and public key of the inaccessible storage system.


NOTE

When you remotely log in to the storage system using SSH next time, a new public key will be generated in the know_hosts file.


Step 3 Use SSH to remotely log in to the storage system again.




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 " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

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.