rsync/ssh/cygwin

jw schultz jw at pegasys.ws
Wed May 7 12:15:59 EST 2003


On Tue, May 06, 2003 at 11:13:05AM -0400, Andrew MacKenzie wrote:
[snip]
> > It is clear that things are not configured correctly for ssh
> > and csh.  I'd suggest while testing that you disable X11
> > forwarding (either -e "ssh -x" or set the RSYNC_RSH
> > variable). The fewer extraneous errors the easier to debug.
> 
> # rsync -e 'ssh -x' -ravvv amackenz at edw450-1-1:MAGS/Unix .
> opening connection using ssh -x -l amackenz edw450-1-1 rsync --server --sender -vvvlogDtpr . MAGS/Unix 
> amackenz at edw450-1-1's password: 
> channel 0: chan_shutdown_read: close() failed for fd-1: Socket operation
> on non-socket

This message apears to be comming from ssh since i cannot
find anything like it in rsync source.

Try turning off verbosity on rsync and pump up the debugging
level on ssh.  This is looking very much like an ssh
problem.

> rsync: connection unexpectedly closed (0 bytes read so far)
> rsync error: error in rsync protocol data stream (code 12) at io.c(165)
> _exit_cleanup(code=12, file=io.c, line=165): about to call exit(12)
> channel 0: chan_shutdown_write: close() failed for fd-1: Socket
> operation on non-socket
> rsync: read error: Connection reset by peer
> rsync error: error in rsync protocol data stream (code 12) at
> /tmp/rsync-2.5.6/io.c(177)
> _exit_cleanup(code=12, file=/tmp/rsync-2.5.6/io.c, line=177): about to
> call exit(12)
> 
> 
> Results are slightly different (but very similar) if the Sun or Linux box
> recieves:
> # rsync -e 'ssh -x' -ravvv Unix amackenz at edw450-1-1:.          
> opening connection using ssh -x -l amackenz edw450-1-1 rsync --server -vvvlogDtpr . . 
> amackenz at edw450-1-1's password: 
> channel 0: chan_shutdown_read: close() failed for fd-1: Socket operation
> on non-socket
> rsync: connection unexpectedly closed (0 bytes read so far)
> rsync error: error in rsync protocol data stream (code 12) at io.c(165)
> _exit_cleanup(code=12, file=io.c, line=165): about to call exit(12)
> channel 0: chan_shutdown_write: close() failed for fd-1: Socket operation
> on non-socket
> rsync: read error: Connection reset by peer
> rsync error: error in rsync protocol data stream (code 12) at
> /tmp/rsync-2.5.6/io.c(177)
> _exit_cleanup(code=12, file=/tmp/rsync-2.5.6/io.c, line=177): about to
> call exit(12)
> 
> 
> Then I ran the following just to be sure the remote bit was working...
> # ssh -x -l amackenz edw450-1-1 rsync --server --sender -vvvlogDtpr . MAGS/Unix 
> amackenz at edw450-1-1's password: 
> Killed by signal 2. 
> (I killed it w/ ctrl+c, it seemed to work fine).
> 
> I get the same results whether the remote machine is Solaris or Linux
> (RedHat 8.0).
> 
> It may well be a bug in Cygwin, though I'm not sure.  Cygwin seems to be at
> version 1.3.22 (uname reports).
> 
> > There have been some reports that the version of ssh
> > supplied by Sun has problems with rsync.  Those who have
> > reported this have found that openssh works fine.
> I should have mentioned that the Sun box is running openssh (as is the
> Linux machine that I also experience the same troubles with).

-- 
________________________________________________________________
	J.W. Schultz            Pegasystems Technologies
	email address:		jw at pegasys.ws

		Remember Cernan and Schmitt


More information about the rsync mailing list