SSH seems to freeze in rsync on WinNT

Jason Legate aurelius+cygwin@slashze.ro
Thu Apr 14 19:02:00 GMT 2005


Upon closer inspection of the logfiles, it appears that the line after the last
line below (in the "Good" run of the program) is:

2005-04-14 09:19:29: debug1: read PEM private key done: type DSA

So i go to look at the .ssh/id_dsa file, and sure enough, the file wasn't
readable by anyone but Administrator

*brainfart*

Thanks,

Jason

On Thu, Apr 14, 2005 at 10:45:41AM -0700, Jason Legate wrote:
> Mail-Followup-To: cygwin@cygwin.com
> Date: Thu, 14 Apr 2005 10:45:41 -0700
> From: Jason Legate <aurelius+cygwin@slashze.ro>
> To: Ben Terry <benterry@comcast.net>, cygwin@cygwin.com
> Subject: Re: SSH seems to freeze in rsync on WinNT
> 
> Well, if you scroll all the way down, you see it works fine if i run the app
> manually.  It only hangs there if it is run automatically.  (I run it as
> Administrator, but it get's auto launched as the local system).
> 
> -Jason
> 
> On Thu, Apr 14, 2005 at 01:23:35PM -0400, Ben Terry wrote:
> > From: "Ben Terry" <benterry@comcast.net>
> > To: "Jason Legate" <aurelius+cygwin@slashze.ro>, <cygwin@cygwin.com>
> > Subject: Re: SSH seems to freeze in rsync on WinNT
> > Date: Thu, 14 Apr 2005 13:23:35 -0400
> > X-Mailer: Microsoft Outlook Express 6.00.2800.1478
> > 
> > I've seen something similar...
> > It seemed to be permission related and I never did figure it out...
> > try rsync'ing the files to another directory on the destination server and
> > then rsync'ing again from there to the final directory (on the same
> > server)...see it that works...
> > ----- Original Message ----- 
> > From: "Jason Legate" <aurelius+cygwin@slashze.ro>
> > To: <cygwin@cygwin.com>
> > Sent: Thursday, April 14, 2005 1:00 PM
> > Subject: SSH seems to freeze in rsync on WinNT
> > 
> > 
> > > I have an rsync being spawned from an external application nightly, and it
> > seems
> > > to always "freeze" on ssh:
> > >
> > > 2005-04-14 00:03:10: Running rsync -e "ssh -vvv -o
> > PasswordAuthentication=no" --exclude-from=d:\AlohaQS\backups\RSYNC.ex -az
> > /cygdrive/d/AlohaQS/20050413 /cygdrive/d/AlohaQS/200504*
> > user@host:/dateddirs
> > > 2005-04-14 00:03:11: OpenSSH_3.9p1, OpenSSL 0.9.7d 17 Mar 2004
> > > 2005-04-14 00:03:12: debug2: ssh_connect: needpriv 0
> > > 2005-04-14 00:03:12: debug1: Connecting to host [ip] port 22.
> > > 2005-04-14 00:03:12: debug1: Connection established.
> > > 2005-04-14 00:03:12: debug1: identity file
> > /cygdrive/d/AlohaQS/backups/.ssh/identity type -1
> > > 2005-04-14 00:03:12: debug1: identity file
> > /cygdrive/d/AlohaQS/backups/.ssh/id_rsa type -1
> > > 2005-04-14 00:03:12: debug1: identity file
> > /cygdrive/d/AlohaQS/backups/.ssh/id_dsa type 2
> > > 2005-04-14 00:03:12: debug1: Remote protocol version 1.99, remote software
> > version OpenSSH_3.8.1p1 FreeBSD-20040419
> > > 2005-04-14 00:03:12: debug1: match: OpenSSH_3.8.1p1 FreeBSD-20040419 pat
> > OpenSSH*
> > > 2005-04-14 00:03:12: debug1: Enabling compatibility mode for protocol 2.0
> > > 2005-04-14 00:03:12: debug1: Local version string SSH-2.0-OpenSSH_3.9p1
> > > 2005-04-14 00:03:12: debug2: fd 3 setting O_NONBLOCK
> > > 2005-04-14 00:03:12: debug1: SSH2_MSG_KEXINIT sent
> > > 2005-04-14 00:03:12: debug1: SSH2_MSG_KEXINIT received
> > > 2005-04-14 00:03:12: debug2: kex_parse_kexinit:
> > diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellma
> > n-group1-sha1
> > > 2005-04-14 00:03:12: debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
> > > 2005-04-14 00:03:12: debug2: kex_parse_kexinit:
> > aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,r
> > ijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
> > > 2005-04-14 00:03:12: debug2: kex_parse_kexinit:
> > aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,r
> > ijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
> > > 2005-04-14 00:03:12: debug2: kex_parse_kexinit:
> > hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hm
> > ac-md5-96
> > > 2005-04-14 00:03:12: debug2: kex_parse_kexinit:
> > hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hm
> > ac-md5-96
> > > 2005-04-14 00:03:12: debug2: kex_parse_kexinit: none,zlib
> > > 2005-04-14 00:03:12: debug2: kex_parse_kexinit: none,zlib
> > > 2005-04-14 00:03:12: debug2: kex_parse_kexinit:
> > > 2005-04-14 00:03:12: debug2: kex_parse_kexinit:
> > > 2005-04-14 00:03:12: debug2: kex_parse_kexinit: first_kex_follows 0
> > > 2005-04-14 00:03:12: debug2: kex_parse_kexinit: reserved 0
> > > 2005-04-14 00:03:12: debug2: kex_parse_kexinit:
> > diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
> > > 2005-04-14 00:03:12: debug2: kex_parse_kexinit: ssh-dss
> > > 2005-04-14 00:03:12: debug2: kex_parse_kexinit:
> > aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,r
> > ijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
> > > 2005-04-14 00:03:12: debug2: kex_parse_kexinit:
> > aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,r
> > ijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
> > > 2005-04-14 00:03:12: debug2: kex_parse_kexinit:
> > hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hm
> > ac-md5-96
> > > 2005-04-14 00:03:12: debug2: kex_parse_kexinit:
> > hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hm
> > ac-md5-96
> > > 2005-04-14 00:03:12: debug2: kex_parse_kexinit: none,zlib
> > > 2005-04-14 00:03:12: debug2: kex_parse_kexinit: none,zlib
> > > 2005-04-14 00:03:12: debug2: kex_parse_kexinit:
> > > 2005-04-14 00:03:12: debug2: kex_parse_kexinit:
> > > 2005-04-14 00:03:12: debug2: kex_parse_kexinit: first_kex_follows 0
> > > 2005-04-14 00:03:12: debug2: kex_parse_kexinit: reserved 0
> > > 2005-04-14 00:03:12: debug2: mac_init: found hmac-md5
> > > 2005-04-14 00:03:12: debug1: kex: server->client aes128-cbc hmac-md5 none
> > > 2005-04-14 00:03:12: debug2: mac_init: found hmac-md5
> > > 2005-04-14 00:03:12: debug1: kex: client->server aes128-cbc hmac-md5 none
> > > 2005-04-14 00:03:12: debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192)
> > sent
> > > 2005-04-14 00:03:12: debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
> > > 2005-04-14 00:03:13: debug2: dh_gen_key: priv key bits set: 125/256
> > > 2005-04-14 00:03:13: debug2: bits set: 510/1024
> > > 2005-04-14 00:03:13: debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
> > > 2005-04-14 00:03:13: debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
> > > 2005-04-14 00:03:13: debug3: check_host_in_hostfile: filename
> > /cygdrive/d/AlohaQS/backups/.ssh/known_hosts
> > > 2005-04-14 00:03:13: debug3: check_host_in_hostfile: match line 1
> > > 2005-04-14 00:03:13: debug3: check_host_in_hostfile: filename
> > /cygdrive/d/AlohaQS/backups/.ssh/known_hosts
> > > 2005-04-14 00:03:13: debug3: check_host_in_hostfile: match line 1
> > > 2005-04-14 00:03:13: debug1: Host 'host' is known and matches the DSA host
> > key.
> > > 2005-04-14 00:03:13: debug1: Found key in
> > /cygdrive/d/AlohaQS/backups/.ssh/known_hosts:1
> > > 2005-04-14 00:03:13: debug2: bits set: 523/1024
> > > 2005-04-14 00:03:13: debug1: ssh_dss_verify: signature correct
> > > 2005-04-14 00:03:13: debug2: kex_derive_keys
> > > 2005-04-14 00:03:13: debug2: set_newkeys: mode 1
> > > 2005-04-14 00:03:13: debug1: SSH2_MSG_NEWKEYS sent
> > > 2005-04-14 00:03:13: debug1: expecting SSH2_MSG_NEWKEYS
> > > 2005-04-14 00:03:13: debug2: set_newkeys: mode 0
> > > 2005-04-14 00:03:13: debug1: SSH2_MSG_NEWKEYS received
> > > 2005-04-14 00:03:13: debug1: SSH2_MSG_SERVICE_REQUEST sent
> > > 2005-04-14 00:03:13: debug2: service_accept: ssh-userauth
> > > 2005-04-14 00:03:13: debug1: SSH2_MSG_SERVICE_ACCEPT received
> > > 2005-04-14 00:03:13: debug2: key:
> > /cygdrive/d/AlohaQS/backups/.ssh/identity (0x0)
> > > 2005-04-14 00:03:13: debug2: key: /cygdrive/d/AlohaQS/backups/.ssh/id_rsa
> > (0x0)
> > > 2005-04-14 00:03:13: debug2: key: /cygdrive/d/AlohaQS/backups/.ssh/id_dsa
> > (0x100e8ad8)
> > > 2005-04-14 00:03:18: debug1: Authentications that can continue:
> > publickey,keyboard-interactive
> > > 2005-04-14 00:03:18: debug3: start over, passed a different list
> > publickey,keyboard-interactive
> > > 2005-04-14 00:03:18: debug3: preferred publickey,keyboard-interactive
> > > 2005-04-14 00:03:18: debug3: authmethod_lookup publickey
> > > 2005-04-14 00:03:18: debug3: remaining preferred: keyboard-interactive
> > > 2005-04-14 00:03:18: debug3: authmethod_is_enabled publickey
> > > 2005-04-14 00:03:18: debug1: Next authentication method: publickey
> > > 2005-04-14 00:03:18: debug1: Trying private key:
> > /cygdrive/d/AlohaQS/backups/.ssh/identity
> > > 2005-04-14 00:03:18: debug3: no such identity:
> > /cygdrive/d/AlohaQS/backups/.ssh/identity
> > > 2005-04-14 00:03:18: debug1: Trying private key:
> > /cygdrive/d/AlohaQS/backups/.ssh/id_rsa
> > > 2005-04-14 00:03:18: debug3: no such identity:
> > /cygdrive/d/AlohaQS/backups/.ssh/id_rsa
> > > 2005-04-14 00:03:18: debug1: Offering public key:
> > /cygdrive/d/AlohaQS/backups/.ssh/id_dsa
> > > 2005-04-14 00:03:18: debug3: send_pubkey_test
> > > 2005-04-14 00:03:18: debug2: we sent a publickey packet, wait for reply
> > > 2005-04-14 00:03:19: debug1: Remote: Forced command: rrsync data
> > > 2005-04-14 00:03:19: debug1: Remote: Port forwarding disabled.
> > > 2005-04-14 00:03:19: debug1: Remote: X11 forwarding disabled.
> > > 2005-04-14 00:03:19: debug1: Remote: Agent forwarding disabled.
> > > 2005-04-14 00:03:19: debug1: Remote: Pty allocation disabled.
> > > 2005-04-14 00:03:19: debug1: Server accepts key: pkalg ssh-dss blen 433
> > > 2005-04-14 00:03:19: debug2: input_userauth_pk_ok: fp
> > 42:06:86:fc:50:99:46:3a:0d:97:3b:93:a7:d6:4f:08
> > > 2005-04-14 00:03:19: debug3: sign_and_send_pubkey
> > > 2005-04-14 07:17:16: rsync: read error: Connection reset by peer (104)
> > >
> > > ---
> > > It doesn't quit until I kill the ssh process in the morning (at 07:17
> > here)
> > >
> > > The application is running as "Local System" (though I have it running as
> > such
> > > on another site just fine).  It's on a WinNT Workstation 4.0 machine.
> > >
> > > SSH Client: OpenSSH_3.9p1, OpenSSL 0.9.7d 17 Mar 2004
> > > rsync client: rsync  version 2.6.3  protocol version 28
> > >
> > > Problem is, when I run the application manually, it works just fine
> > >
> > > Any ideas?
> > >
> > > Thanks in advance,
> > >
> > > Jason
> > > -- 
> > > Jason Legate (W6SN)
> > > Key Fingerprint: 4FB4 2228 DE63 3BBA 7B72  40DD 13D5 2547 821D 2909
> > >
> > > --
> > > 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/
> > >
> > >
> > 
> ---end quoted text---
> 
> -- 
> Jason Legate (W6SN)
> Key Fingerprint: 4FB4 2228 DE63 3BBA 7B72  40DD 13D5 2547 821D 2909
> 
> --
> 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/
---end quoted text---

-- 
Jason Legate (W6SN)
Sr. FreeBSD Admin, XFR
Sr. Net/Sys Admin, eVine, Inc.
work- jlegate@evine.com | home- jlegate@alienchick.com
Key Fingerprint: 4FB4 2228 DE63 3BBA 7B72  40DD 13D5 2547 821D 2909

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



More information about the Cygwin mailing list