Monitoring, Management & Location Tracking

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

Aruba Employee


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



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



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)
Search Airheads
Showing results for 
Search instead for 
Did you mean: