Strange error
Tod McQuillin
devin at spamcop.net
Sun Jun 12 01:21:57 GMT 2005
On Sun, 12 Jun 2005, Peter Jeremy wrote:
> On Fri, 2005-Jun-10 22:41:36 +0200, Jack Raats wrote:
>> This day I've a very strange error when trying to connect to my FreeBSD machine (4.11-STABLE)
>> I got the following error:
>> ssh_exchange_identification: Connection closed by remote host
>>
>> Can anyone give me any clue what's wrong?
I missed the start of this thread but this sounds like tcpwrappers closing
the connection.
Check your /etc/hosts.allow and look in /var/log/messages for a message
like:
May 31 12:18:36 hostname sshd[1594]: warning: /etc/hosts.allow, line 32: can't verify hostname: getaddrinfo(1.2.3.4.example.com, AF_INET) failed
May 31 12:18:37 hostname sshd[1594]: refused connect from 1.2.3.4 (1.2.3.4)
If you see something like that you can change the entry in your
/etc/hosts.allow to allow ssh connections from that specific IP or
netmask.
see hosts_options(5) for details.
--
Tod McQuillin
More information about the freebsd-questions
mailing list