issue with cygwin sftp installation

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I recently installed sftp on 3 windows 2000 servers.
Two of them work fine-but the first gives this message:

$ sftp www
Connecting to www...
ssh: connect to host www port 22: Connection refused
Connection closed

rburns@www ~

Whenever I access it from itself or another machine. Any idea what to
look for here? Thanks!


Re: issue with cygwin sftp installation writes:
Quoted text here. Click to load it

what does
        $ host www  

resolve to? And is there actually an ssh server running on the
resulting IP?   Is there a route to that IP?  

Todd H. /

Re: issue with cygwin sftp installation

What I notice is if I do an netstat -a, I'll see an entry that looks

$ netstat -a |grep ssh
  TCP    proj:ssh           proj:0             LISTENING

both have this message in the application logs
Quoted text here. Click to load it
local computer may not have the necessary registry information or message DLL
files to display messages from a remote computer. The following information is
part of the event: sshd : PID 1160 : `sshd' service started.
Quoted text here. Click to load it

What I've also noticed on the machine that isn't working is that
although the cygwin sshd service says it is started, I can't stop
it(the only thing that works is rebooting the server).

I've tried de-installing the product and reinstalling. Additional
suggestions are appreciated.

Thank you.

Re: issue with cygwin sftp installation

I noticed this message from last year that sounds a lot like my
problem-no indication of a resolution though.


Quoted text here. Click to load it
I've got a box that starts it's Cygwin service, or so it seems...
$ cygrunsrv -Q sshd
Service sshd exists
Type                : Own Process
Current State       : Running
Controls Accepted   : Accept Stop

...but isn't actually listening/accepting connections...
$ netstat -a | grep ssh

$ ssh localhost
OpenSSH_3.8.1p1, OpenSSL 0.9.7d 17 Mar 2004
debug1: Reading configuration data /etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to localhost [] port 22.
debug1: connect to address port 22: Connection refused
ssh: connect to host localhost port 22: Connection refused

I've reinstalled Cygwin a few times, and the sshd service, but no joy.

It's obviously stuck on something (I'm guessing file permissions) but
I'm not sure what?

The "cygrunsrv -E sshd" command won't stop the service either?! To get
the service to stop, I have to do this, for example...
$ tasklist /svc | grep sshd
cygrunsrv.exe               3944 sshd
sshd.exe                    3908 N/A
$ taskkill /F /PID 3944
SUCCESS: The process with PID 3944 has been terminated.
$ taskkill /F /PID 3908
SUCCESS: The process with PID 3908 has been terminated.

Does this ring any bells with anyone? I'll post more details if
anyone's interested.

Quoted text here. Click to load it

Re: issue with cygwin sftp installation wrote:
Quoted text here. Click to load it

Sounds exactly like my problem, but I have no solution.

I'm running a mix of about 12 stations running XP and 12 running 2000.
The XP machines run copssh (based on cygwin) like a charm.  The Windows
2000 all eventually refuse connection exactly as you describe.  After a
while cygrunsrv runs the cpu usage way up and I've had to uninstall.  My
solution... I'm gradually migrating to XP, as I consider ssh essential.


Site Timeline