Print
Parent Category: Troubleshooting
Hits: 7692

In this short tutorial I'll show you how to fix this error: ssh_exchange_identification: Connection closed by remote host

Error reproduced:

root@Hercule:~# ssh 192.168.0.1
ssh_exchange_identification: Connection closed by remote host
root@Hercule:~# ssh -vvv 192.168.0.1
OpenSSH_5.1p1, OpenSSL 0.9.8i 15 Sep 2008
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to 192.168.0.1[192.168.0.1] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type -1
ssh_exchange_identification: Connection closed by remote host
Fixing solution:
# cd ~/.ssh/
# mv known_hosts known_hosts.tmp

Note:

We use Hosting and VPS Hosting, from: www.star-host.org

We like and trust them.

Good prices, high security.