當我想要利用win10本地的cmd進行:ssh
ssh root@192.168.1.230
時,出現了以下錯誤:ide
C:\Users\Raodi>ssh root@192.168.1.230 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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:M+I2wvuU9NkNuky0XSWsdqS2N8+2sFUb8H66BxhTVtQ. Please contact your system administrator. Add correct host key in C:\\Users\\Raodi/.ssh/known_hosts to get rid of this message. Offending ECDSA key in C:\\Users\\Raodi/.ssh/known_hosts:4 RSA host key for 192.168.1.230 has changed and you have requested strict checking. Host key verification failed.
一、找到用戶目錄下的.ssh目錄,如:C:\Users\Raodi\.ssh 。在該目錄下有一個known_hosts文件,專門記錄ssh過程當中匹配的祕鑰。this
二、編輯該文件,刪除以ip開頭的整行內容,保存並退出。並從新鏈接便可。spa