Skip site navigation (1)Skip section navigation (2)
Date:      Sun,  2 Mar 2003 13:03:29 -0800
From:      Daxbert <daxbert_news@dweebsoft.com>
To:        Wayne <wayne@etaq.com>
Cc:        "" <questions@FreeBSD.ORG>, "" <current@FreeBSD.ORG>
Subject:   Re: can't sshd into box
Message-ID:  <1046639009.3e6271a1b2285@ra.dweebsoft.com>

next in thread | raw e-mail | index | archive | help
Quoting Wayne <wayne@etaq.com>:

>     I have installed 5.0 into a new Dell.  I have not set up anything
> special yet (no firewall, no natd, etc.).
> 
>     I can ssh out to the world, but I can't get into the new box from the
> gateway FreeBSD box on the same home network.  The gateway box properly
> lists the new box in /etc/hosts.  Each box can ping the other by name
> and by ip.
> 
>     I enabled telnet in inetd.conf, and I get rejected, also.
> 
>     Is there a new default connecton protection that I must turn off, or
> something?  [/etc/hosts.allow  is the default setting, I see no answer
> there.]
>
> wayne@etaq:/home/wayne>telnet etaq3
> Trying 192.168.0.12...
> Connected to etaq3.etaq.com.
> Escape character is '^]'.
> Connection closed by foreign host.
> 
> wayne@etaq:/home/wayne>ping etaq3
> PING etaq3.etaq.com (192.168.0.12): 56 data bytes
> 64 bytes from 192.168.0.12: icmp_seq=0 ttl=64 time=0.402 ms


When you telnet to any tcp port and you receive 'Connected to xxxx' followed by
an immediate Connection closed by foreign host, it almost always means
tcp_wrappers is blocking your connection.

FWIW - the 'Connected to' blurb means the 3-way TCP handshake was successful.

I thought the default install has tcp_wrappers "open".  Since it sounds like
it's not open, add the following line to the very top of /etc/hosts.allow to
effecctively disable tcp_wrappers:

ALL : ALL  : allow


As another test... do the following:

# telnet etaq3 22

Do you get an SSH banner immediately? eventually? never?

--daxbert

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1046639009.3e6271a1b2285>