Mail Archives: cygwin/2005/07/01/13:45:34
----Original Message----
>From: René Berber
>Sent: 01 July 2005 18:37
> Dave Korn wrote:
> [snip]
>> "Connection refused" has a very precise meaning: it means that in
>> response to the outbound SYN packet, the remote host returned a RST
>> instead of a SYN/ACK. This happens when the port in question is closed
>> - nothing listening - but *not* firewalled. A firewalled port will
>> return nothing at all, which is generally referred to as "stealthed",
>> and which will eventually cause the socket initiating the outbound
>> connection to time out.
>
> I stand corrected.
>
> Back to the original post... then the problem is that sshd is not
> running, or at least not listening at port 22.
Actually, I wasn't entirely clear: "Connection refused" means the
initiating side received a RST in response to its ACK, and the port being
available-but-closed is only one possible cause. Some firewalls close off
ports in a *non-stealthy* mode by sending back RST instead of by just
discarding the incoming packets, so we still can't tell from that alone
whether there's a problem with the sshd itself or a problem with a firewall
somewhere.
However, trying to ssh into the server machine from a bash session on the
machine itself, using "ssh 127.0.0.1", should tell the OP whether the
service is running or not. As indeed would "netstat -ano | grep -w 22".
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -