ssh_exchange_identification: Connection closed by remote host

FREQUENTLY ASKED QUESTIONS (Secure Shell)
Q: How to fix error
 "ssh_exchange_identification: Connection closed by remote host"      
    while connecting ssh to a remote ssh server?

[root@server ~]# ssh 192.168.10.50
ssh_exchange_identification: Connection closed by remote host


          You may get this error message when you connect to a SSH (SecureShell) server from a linux machine or putty ssh client or any other ssh clients.
This may due to destination SSH server's hosts.deny or hosts.allow file is rejecting the incoming SSH connections. 


Allow SSH connections in "hosts.allow" file
Add the below line to /etc/hosts.allow file (Allowing all clients).
sshd:ALL


How to allow specific ip address range only
sshd:192.168.10.0/255.255.255.0



0 comments:

Related Posts Plugin for WordPress, Blogger...

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Bluehost Coupons