2020年8月11日 星期二

HPE switch SSH失敗

 HPE switch SSH失敗


HPE switch 當做ssh client的時候,如果因為金鑰問題,會導致SSH設備失敗

錯誤訊息如下

The server's host key does not match the local cached key. Either the server administrator has changed the host key, or you connected to another server pretending to be this server. Please remove the local cached key, before logging in

只要把ssh金鑰刪除,重新跟ssh server要就可以了


可以透過display ssh client server-public-key檢視金鑰

再透過指令delete ssh client server-public-key server-ip x.x.x.x 刪除

刪除之後重新ssh設備即可


Regards,