Monitoring, Management & Location Tracking

How To Fix Offending key in ~/.ssh/known_hosts file
Problem:

 

Sometimes we may face issues when we SSH or SCP from one Airwave box to another when the RSA key fingerprint is changed



Diagnostics:

 

Following error will be displayed when the remote host key changes (after you’ve connected earlier with a valid remote host key).



Solution

 

We have to remove the offending key to proceed further. Use the following command to remove the offending key,

# sed -i '1d' ~/.ssh/known_hosts

 

Note: Change the 1d according to the line number shown.

 

Now we should be able to login successfully. 

 

 

Version History
Revision #:
2 of 2
Last update:
‎07-25-2016 04:05 PM
Updated by:
 
Labels (1)
Contributors
Search Airheads
Showing results for 
Search instead for 
Did you mean: 
Is this a frequent problem?

Request an official Aruba knowledge base article to be written by our experts.