ssh_exchange_identification: Connection closed by remote host

chkbrian chkbrian at hongkong.com
Tue Aug 12 12:37:48 EST 2003


The problem was occurred due to incorrect setting of hosts.allow for tcpwrapper. We have two interface with different Ip address. Only one interface/ ip address was granted access right via hosts.allow. 

However, always while we want to ssh to hkmauat, the interface/ip address not in hosts.allow was used. So the access was not successful. If the granted interface/ip address was in used, the access was okay. So, the problem is not occurred sometime.

Now, we have modify the hosts.allow in hkmauat to include two interface/ip address and the problem is resolved.

Thanks.


-----Original message-----
From:Darren Tucker <dtucker at zip.com.au>
To:chkbrian at hongkong.com
Cc:openssh-unix-dev at mindrot.org
Date:Wed, 06 Aug 2003 17:33:44 +1000
Subject:Re: ssh_exchange_identification: Connection closed by remote host

chkbrian wrote:
> I encountered the following problem while I typing "ssh -v <host_name>"
[snip]
> ssh_exchange_identification: Connection closed by remote host

You should specify your platform and OpenSSH version, but this is almost
certainly due to tcpwrappers configuration.

Add the following line to hosts.allow:
sshd: ALL

It may be in /etc or /usr/local/etc.

Alternatively you could rebuild sshd without "--with-tcp-wrappers".

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.




More information about the openssh-unix-dev mailing list