共計 1727 個字符,預計需要花費 5 分鐘才能閱讀完成。
行業資訊
數據庫
關系型數據庫
linux 下 ssh 連接服務器出現 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED 怎么解決
本篇內容主要講解“linux 下 ssh 連接服務器出現 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED 怎么解決”,感興趣的朋友不妨來看看。本文介紹的方法操作簡單快捷,實用性強。下面就讓丸趣 TV 小編來帶大家學習“linux 下 ssh 連接服務器出現 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED 怎么解決”吧!
[root@zk01 ~]# ssh localhost
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
SHA256:r86jc/Vu8phhiKKDSntetfkmksjQ606ZlUP8XNYe44U.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:10
Password authentication is disabled to avoid man-in-the-middle attacks.
Keyboard-interactive authentication is disabled to avoid man-in-the-middle attacks.
Permission denied (publickey,password,keyboard-interactive).
說明: Add correct host key in /root/.ssh/known_hosts to get rid of this message. 重點在這句話
分析: ssh 登錄過某機器后,因某機器有變動(更換 ip 等),再次登錄不了,報錯!!!
解決過程:
[root@zk01 ~]# mv /root/.ssh/known_hosts /root/.ssh/known_hosts.bak
[root@zk01 ~]# ssh -o StrictHostKeyChecking=no 172.16.38.130
Warning: Permanently added 172.16.38.130 (ECDSA) to the list of known hosts.
root@172.16.38.130 s password:
Last login: Sun Oct 1 12:02:21 2017 from 172.16.74.104
[root@zk01 ~]# ssh localhost ## 輸入密碼,OK!
Warning: Permanently added localhost (ECDSA) to the list of known hosts.
root@localhost s password:
Last login: Sun Oct 1 12:04:59 2017 from zk01
到此,相信大家對“linux 下 ssh 連接服務器出現 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED 怎么解決”有了更深的了解,不妨來實際操作一番吧!這里是丸趣 TV 網站,更多相關內容可以進入相關頻道進行查詢,關注我們,繼續學習!