rsync/ssh/cygwin

Andrew MacKenzie amackenz at edespot.com
Wed May 7 01:13:05 EST 2003


> > I've tried many different command lines, but nothing seems to help.
> > edw450-1-1 is a Solarix box here, running rsync 2.5.6 protocol 26 as well.
> > But I get the same results against a RedHat Linux system running the same
> > version.
> > 
> > the 'stty' invalid argument lines are likely from an error in the .cshrc
> > login script on that system (publicly sourced file).  scp works just fine
> > accross each of these systems as does ssh.
> 
> While i doubt the stty errors are the problem stty should
> never be called from a .cshrc file. stty belongs in .login
> where it will only be called for login shells.  .cshrc
> should be as small as possible because it is run every time
> you launch a shell (including scripts).  My recollection is
> that stty should either be complaining "not a tty" or not at
> all so the "invalid arguments" and is one more hint that
> there is old stuff (from SunOS?) and the dot files should be
> audited.
ack.

I've copied a lot to '.login' from the .cshrc.  No longer see the stty
issues.

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

-- 
// Andrew MacKenzie  |  http://www.edespot.com
// GPG public key: http://www.edespot.com/~amackenz/public.key
// "The time has come" the walrus said, "to speak of many things.  Of shoes
// and ships and sealing wax, and cabbages and kings.  And if the sea is
// boiling hot and whether pigs have wings."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/rsync/attachments/20030506/11654cb5/attachment.bin


More information about the rsync mailing list