ssh scp 無法連接到某台機器
使用SSH登錄另外一台機器,
#ssh 172.16.16.38
得到如下輸出
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
a5:1c:99:1f:fa:d7:1e:76:8b:0a:67:eb:4f:90:24:7a.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:1
RSA host key for 192.168.1.105 has changed and you have requested strict checking.
Host key verification failed.
在網上查說是ssh未安裝完全,如openssh-server,openssh-cli 未安裝等說法,安裝後依然未解決
後終於在網上找出了原因:
因為在本地機器上曾經用SSH登錄過這台遠程計算機,因而留下了known_hosts的記錄,在遠程計算機重新安裝系統後不能夠通過鑒權。 刪除~/.ssh/known_hosts中對應的項目,問題獲得解決。