Problem 欲將在主機A上的檔案以scp 傳送至另外一台主機B,無法連線,而系統顯示錯誤訊息: ssh_exchange_identification: Connection closed by remote host lost connection Solution 1. 檢查兩台主機的 /etc/hosts 是否正確 2. 參考[1],按步驟做檢查兩邊的設定,而找出解決方法。例如: 在主機A,有定義主機B的IP位置: [A]# grep sshd /etc/hosts.allow sshd:100.1.38.1 但是檢查主機 B 時,卻發現 /etc/hosts.allow 中沒有設定主機 A 的 IP 位置,此時只要以 vi 指令將主機 A 的 IP 加入即可。 Validation [A]# scp test.txt root@100.1.38.1:/ddd/ root@100.1.38.1's password: test.txt 100% 5 0.0KB/s 00:00 Reference 1. ssh_exchange_identification: Connection closed by remote host, http://edoceo.com/notabene/ssh-exchange-identification
“Those who are in love with practice without knowledge are like the sailor who gets into a ship without rudder or compass and who never can be certain [where] he is going. Practice must always be founded on sound theory.” by Leonardo da Vinci
2015年6月3日 星期三
【Linux 】ssh_exchange_identification: Connection closed by remote host lost connection
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言