X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_20,J_CHICKENPOX_66,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Wilfried Subject: Re: How can I ssh to a Windows box? Date: Fri, 13 Mar 2009 11:17:02 +0100 Lines: 76 Message-ID: <5nakr41iqnu8g1vo4auk5mj3in7sh4kf9p@4ax.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Michael Hennebry wrote: > On Thu, 12 Mar 2009, Wilfried wrote: > > > Michael Hennebry 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? Also have a look in (windows') control panel - administration - event viewer - application Any entries for sshd? Any error entries? In cygwin/etc, is there a file named "hosts.allow" ? It should be there and contain a line sshd: ALL 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. 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 You can also look in to the task manager. It should show up as sshd.exe with user "SYSTEM". (Also with admin rights) open a command prompt ("DOS box") and enter netstat -a It should display TCP computername:ssh computername:0 LISTENING Repeat this after making a local connection. -- Wilfried Hennings -- 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/