This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ssh problem with cygwin - works OK with linux


Hi,
My name is Brian McNeil and I have a problem with setting up SSH. I want to connect and
access files on my work winXP based computer from my home winXP based computer using
the WinScp package.


I already have a linux based computer at work on the same network and I can access that
from my home computer with no problems. The problem is in accessing my work winXP computer
that runs cygwin with sshd. The IP addresses for both work computers are identical except for
the final number.


Note: From my home computer I can ssh my work linux computer using Putty and then from
there successfully ssh the work winXP machine. So the ssh works in accessing the work winXP
computer with no problems from inside the work network.


See below for ssh debug output.

Any help/suggestions will be gratefully received!

Brian.
======================================================================
From a cygwin terminal on my home winXP machine to work winXP machine I get:


$ ssh -v brian@<work winXP IP>
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Connecting to <work winXP IP> port 22.
debug1: connect to address <work winXP IP> port 22: Connection timed out
ssh: connect to host <work winXP IP> port 22: Connection timed out
======================================================================

From a cygwin terminal on my home winXP machine to work linux machine I get:

$ ssh -v brian@<work linux IP>
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Connecting to <work linux IP> port 22.
debug1: Connection established.
debug1: identity file /home/cabs46/.ssh/identity type -1
debug1: identity file /home/cabs46/.ssh/id_rsa type -1
debug1: identity file /home/cabs46/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.5p1
debug1: match: OpenSSH_3.5p1 pat OpenSSH_3.*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.6
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host <work linux IP> is known and matches the RSA host key.
debug1: Found key in /home/cabs46/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/cabs46/.ssh/identity
debug1: Trying private key: /home/cabs46/.ssh/id_rsa
debug1: Trying private key: /home/cabs46/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: password
brian@<work linux IP>'s password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
Last login: Fri Jun 15 19:22:05 2007 from host86-150-206-199.range86-150.btcentralplus.com
[brian@leven brian]$
======================================================================
From a Putty terminal on my home winXP machine to work linux machine and then ssh to work winXP machine I get:


[brian@leven brian]$ ssh -v brian@<work winXP IP>
OpenSSH_3.5p1, SSH protocols 1.5/2.0, OpenSSL 0x0090701f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: ssh_connect: needpriv 0
debug1: Connecting to <work winXP IP> port 22.
debug1: Connection established.
debug1: identity file /home/brian/.ssh/identity type -1
debug1: identity file /home/brian/.ssh/id_rsa type 1
debug1: identity file /home/brian/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_4.6
debug1: match: OpenSSH_4.6 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.5p1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: dh_gen_key: priv key bits set: 126/256
debug1: bits set: 1018/2048
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host <work winXP IP> is known and matches the RSA host key.
debug1: Found key in /home/brian/.ssh/known_hosts:6
debug1: bits set: 1060/2048
debug1: ssh_rsa_verify: signature correct
debug1: kex_derive_keys
debug1: newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: waiting for SSH2_MSG_NEWKEYS
debug1: newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: done: ssh_kex2.
debug1: send SSH2_MSG_SERVICE_REQUEST
debug1: service_accept: ssh-userauth
debug1: got SSH2_MSG_SERVICE_ACCEPT
debug1: authentications that can continue: publickey,password
debug1: next auth method to try is publickey
debug1: try privkey: /home/brian/.ssh/identity
debug1: try pubkey: /home/brian/.ssh/id_rsa
debug1: authentications that can continue: publickey,password
debug1: try privkey: /home/brian/.ssh/id_dsa
debug1: next auth method to try is password
brian@<work winXP IP>'s password:
debug1: ssh-userauth2 successful: method password
debug1: channel 0: new [client-session]
debug1: send channel open 0
debug1: Entering interactive session.
debug1: ssh_session2_setup: id 0
debug1: channel request 0: pty-req
debug1: channel request 0: shell
debug1: fd 3 setting TCP_NODELAY
debug1: channel 0: open confirm rwindow 0 rmax 32768
Last login: Fri Jun 15 19:25:55 2007 from <work linux IP>
Fanfare!!!
You are successfully logged in to this server!!!


--
Dr. Brian WJ McNeil
Department of Physics, SUPA
University of Strathclyde
107 Rottenrow East
Glasgow, G4 0NG
Scotland

Tel: 0141 548 4727
Fax: 0141 552 2891



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]