issue with cygwin sftp installation - SSH

This is a discussion on issue with cygwin sftp installation - SSH ; 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 ~ $ ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: issue with cygwin sftp installation

  1. issue with cygwin sftp installation

    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!

    RJB


  2. Re: issue with cygwin sftp installation

    randall_burns@hotmail.com writes:
    > 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!


    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.
    http://www.toddh.net/

  3. Re: issue with cygwin sftp installation

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

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

    both have this message in the application logs
    >The description for Event ID ( 0 ) in Source ( sshd ) cannot be found. The 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.
    >>>>>>>>>>>>>>>>>>


    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.


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

    RJB

    >>>>

    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 [127.0.0.1] port 22.
    debug1: connect to address 127.0.0.1 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.

    Thanks.
    >



  5. Re: issue with cygwin sftp installation

    randall_burns@hotmail.com wrote:
    > I noticed this message from last year that sounds a lot like my
    > problem-no indication of a resolution though.
    >
    > RJB
    >
    >
    > 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 [127.0.0.1] port 22.
    > debug1: connect to address 127.0.0.1 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.
    >
    > Thanks.


    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.

    Mike

+ Reply to Thread