久久ER99热精品一区二区-久久精品99国产精品日本-久久精品免费一区二区三区-久久综合九色综合欧美狠狠

博客專欄

EEPW首頁 > 博客 > scp拷貝失敗:Host key verification failed 的處理方法

scp拷貝失敗:Host key verification failed 的處理方法

發(fā)布人:電子禪石 時間:2020-05-21 來源:工程師 發(fā)布文章


問題描述:

tc125-dtm{ha2}[35]: scp aa 210.10.3.86:/tmp
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
bf:8b:cc:58:71:b0:b4:b1:7b:db:30:92:8f:e7:14:25.
Please contact your system administrator.
Add correct host key in /home/h-a2/vl/home/.ssh/known_hosts to get rid of this message.
Offending key in /home/h-a2/vl/home/.ssh/known_hosts:1
RSA host key for 210.10.3.86 has changed and you have requested strict checking.
Host key verification failed.
lost connection

由于公鑰不一樣了,所以無法登錄,提示信息是 KEY 驗證失敗。

########################################################################

 

解決方法:

1. .ssh/known_hosts 裡面記錄的目標(biāo)主機(jī) key 值不正確。這是最普遍的情況,只要刪除對應(yīng)的主機(jī)記錄就能恢復(fù)正常。

運行命令: sudo rm /home/yourname/.ssh/known_hosts 

2. .ssh 目錄或者 .ssh/known_hosts 對當(dāng)前用戶的權(quán)限設(shè)置不正確。這種情況比較少,一般正確設(shè)置讀寫權(quán)限以后也能恢復(fù)正常。

3. /dev/tty 對 other 用戶沒有放開讀寫權(quán)限。這種情況極為罕見。出現(xiàn)的現(xiàn)象是,只有 root 用戶能夠使用 ssh client,而所有其他的普通用戶都會出現(xiàn)錯誤。

1.png

*博客內(nèi)容為網(wǎng)友個人發(fā)布,僅代表博主個人觀點,如有侵權(quán)請聯(lián)系工作人員刪除。

linux操作系統(tǒng)文章專題:linux操作系統(tǒng)詳解(linux不再難懂)


關(guān)鍵詞:

相關(guān)推薦

技術(shù)專區(qū)

關(guān)閉