ssh_exchange_identification:リモートホストによって接続が終了しました。

ssh_exchange_identification:リモートホストによって接続が終了しました。
OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 178.xxx.xxx.xxx [178.xxx.xxx.xxx] port 22.
debug1: Connection established.
debug1: identity file /home/orangetux/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: identity file /home/orangetux/.ssh/id_rsa-cert type -1
debug1: identity file /home/orangetux/.ssh/id_dsa type -1
debug1: identity file /home/orangetux/.ssh/id_dsa-cert type -1
debug1: identity file /home/orangetux/.ssh/id_ecdsa type -1
debug1: identity file /home/orangetux/.ssh/id_ecdsa-cert type -1
ssh_exchange_identification: Connection closed by remote host

管理パネルを介してログにアクセスでき、次の情報を表示できます。

Mar  8 20:32:10 vmi11458 sshd[2334]: Set /proc/self/oom_adj to 0
Mar  8 20:32:10 vmi11458 sshd[2334]: refused connect from 82.xxx.xxx.xxx (82.xxx.xxx.xxx)

DenyHostsサービスを停止しました。しかし、まだログインしていません。この問題をどのように解決できますか?

ベストアンサー1

拒否ホストサービスを停止すると、新しいエントリが作成されるのを防ぎますが、/etc/hosts.deny既存のエントリはまだ存在します。hosts.denyフォルダからIPを手動で削除する必要があります。このIPが再追加されるのを防ぐために、ファイルからホワイトリストに追加する必要がありますallowed-hosts

おすすめ記事