delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/13/11:53:29

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_54,J_CHICKENPOX_66
X-Spam-Check-By: sourceware.org
Date: Fri, 13 Mar 2009 11:48:38 -0500 (CDT)
From: Michael Hennebry <hennebry AT web DOT cs DOT ndsu DOT nodak DOT edu>
To: Wilfried <wh_ng AT gmx DOT de>
cc: cygwin AT cygwin DOT com
Subject: Re: How can I ssh to a Windows box?
In-Reply-To: <5nakr41iqnu8g1vo4auk5mj3in7sh4kf9p@4ax.com>
Message-ID: <alpine.DEB.1.00.0903131131360.20903@mail.cs.ndsu.nodak.edu>
References: <alpine DOT DEB DOT 1 DOT 00 DOT 0903091630580 DOT 29189 AT mail DOT cs DOT ndsu DOT nodak DOT edu> <alpine DOT DEB DOT 1 DOT 00 DOT 0903091701480 DOT 29667 AT mail DOT cs DOT ndsu DOT nodak DOT edu> <e80ir4dkgcamjqjm2b9v26tgll4398sv4h AT 4ax DOT com> <alpine DOT DEB DOT 1 DOT 00 DOT 0903121117230 DOT 7847 AT mail DOT cs DOT ndsu DOT nodak DOT edu> <5nakr41iqnu8g1vo4auk5mj3in7sh4kf9p AT 4ax DOT com>
User-Agent: Alpine 1.00 (DEB 882 2007-12-20)
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Fri, 13 Mar 2009, Wilfried wrote:

> Michael Hennebry <hennebry AT web DOT cs DOT ndsu DOT nodak DOT edu> wrote:
>
>> On Thu, 12 Mar 2009, Wilfried wrote:
>>
>>> Michael Hennebry <hennebry AT web DOT cs DOT ndsu DOT nodak DOT edu> wrote:
>>>
>>>> On Mon, 9 Mar 2009, Michael Hennebry wrote:
>>>> ...
>>>> I've discovered that if I kill the demon,
>>>> I still get timeout from the outside,
>>>> but connection refused locally.
>>>
>>> If you can login to ssh locally but not from the outside, perhaps your
>>> Windows' firewall is blocking this.
>>
>> That was my thought, too,
>> but it seems to be correct and turning it off didn't help.
>> Could I be missing a similar flag somewhere?
>
> Perhaps some antivirus software?

I've got Norton and ThreatFire.

> Also have a look in
> (windows') control panel - administration - event viewer - application
> Any entries for sshd?
> Any error entries?

Yes.  Four, all the same.
source: sshd
category: None
user: System
computer: 173249...=the one I'm on

It was still four after I tried to ssh from outside again.
The timeout period seems to be getting longer.

> In cygwin/etc, is there a file named "hosts.allow" ?
> It should be there and contain a line
>
> sshd: ALL

There wasn't.
No hosts.deny either.

> or a list of allowed hosts, see e.g.
> http://linux.about.com/od/commands/l/blcmdl5_hostsal.htm
>
>
>>> Start the service by
>>>
>>> cygrunsrv -S sshd
>>
>> No go.
>> Win32 error 1062
>> I tried again after making the rest of /etc system:system .
>> Same no go.
>
> Did you issue all these command while having windows administrator
> rights? The service can only be installed while logged in with
> administrator rights.

Yes.

> The sshd service should also be displayed in Windows' services list.
> (following is my translation to English, maybe it's actually named
> differently, but I haven't access to an English WinXP:)
> Control panel - administration - computer administration - services and
> applications - services
> It shows as
> service name: sshd
> start type: automatic
> status: ended

status is blank.

> You can also look in to the task manager.
> It should show up as sshd.exe with user "SYSTEM".

It does.

>
> (Also with admin rights) open a command prompt ("DOS box") and enter
>
> netstat -a
>
> It should display
>
>  TCP   computername:ssh     computername:0    LISTENING

Also what I infer are two putty sessions and a WinScp session.

> Repeat this after making a local connection.

TCP   computername:ssh     computername:4120    ESTABLISHED

-- 
Michael   hennebry AT web DOT cs DOT ndsu DOT NoDak DOT edu
"Pessimist: The glass is half empty.
Optimist:   The glass is half full.
Engineer:   The glass is twice as big as it needs to be."

--
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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019