bestlong 怕失憶論壇

 

 

搜索
bestlong 怕失憶論壇 論壇 Linux ssh_exchange_identification: Connection closed by re ...
查看: 7445|回復: 1
go

ssh_exchange_identification: Connection closed by remote host [複製鏈接]

Rank: 9Rank: 9Rank: 9

1#
發表於 2010-5-17 17:49 |只看該作者 |倒序瀏覽 |打印
使用 ssh/scp 連線到另一台主機卻得到這個回應, 本來還好好的不知為何這樣.
我是雪龍
http://blog.bestlong.idv.tw
http://www.bestlong.idv.tw

Rank: 9Rank: 9Rank: 9

2#
發表於 2010-5-17 22:51 |只看該作者
最後找到的原因是 denyhosts 造成的
因為同個來源 ip 有幾次登入失敗的紀錄, 剛好該台 server 有啟動 denyhosts 服務
又忙中有錯輸入錯誤的密碼
所以入選被加入 /etc/hosts.deny 的檔案中

sshd: xxx.xxx.xxx.xxx

所以用 ssh 連線的都會自動斷線
只要先去 server 將 /var/log/secure 日誌檔中的認證失敗紀錄給清理掉
才能防止再次被列入黑名單
然後在將 /etc/hosts.deny 的設定清理後(只要清掉被誤檔的自己 ip 就好)
就可以正常連線了
我是雪龍
http://blog.bestlong.idv.tw
http://www.bestlong.idv.tw
‹ 上一主題|下一主題

Archiver|怕失憶論壇

GMT+8, 2024-4-24 00:28 , Processed in 0.029454 second(s), 10 queries .

Powered by Discuz! X1.5

© 2001-2010 Comsenz Inc.