Howto solve ssh_exchange_identification: Connection closed by remote host error

I’ve keep getting the message “ssh_exchange_identification: Connection closed by remote host error” after I managed to finalized my CRUX linux on my decTOP box today. After enough looking into documentations, I finally found out that I need to edit the “/etc/hosts.allow” file to allow SSH connection, for example:


#/etc/hosts.allow
sshd:ALL

or for more conservative setting


#/etc/hosts.allow
sshd:LOCAL
sshd:192.168.1.0/255.255.255.0

I can connect ssh to my box normally after that.

2 Replies to “Howto solve ssh_exchange_identification: Connection closed by remote host error”

  1. Hello, first off…. I purshased this computer with ubunu something and of course!! I had to prowl into everything and, I chnged the /home/john to /home/diana and it tells me that I do not exist…Can you help? I’d do a spell check , but chattng is not my favorite pass time. UNLESS I’M GETTING PAID:}

Comments are closed.