I have add the ssh key to my .ssh/authorized_files. When I enter the command, the errors are as follow. [root@mandrake91 .ssh]# rsync mandrake82::XXXXX /rsynctest --recursive -e ssh buffer_get: trying to get more bytes 129 than in buffer 46 rsync: connection unexpectedly closed (0 bytes read so far) sync error: error in rsync protocol data stream (code 12) at io.c(165) There is no errors when I do not use SSH Please help
On Mon, Aug 25, 2003 at 04:40:54PM +0800, CHEUNG Chi Wai, Chris wrote:> I have add the ssh key to my .ssh/authorized_files. > > When I enter the command, the errors are as follow. > > [root@mandrake91 .ssh]# rsync mandrake82::XXXXX /rsynctest --recursive -e > ssh > buffer_get: trying to get more bytes 129 than in buffer 46 > rsync: connection unexpectedly closed (0 bytes read so far) > sync error: error in rsync protocol data stream (code 12) at io.c(165) > > There is no errors when I do not use SSHThe commandline above does not use ssh. With rsync options precede arguments just like almost all other *ix utilities. -- ________________________________________________________________ J.W. Schultz Pegasystems Technologies email address: jw@pegasys.ws Remember Cernan and Schmitt
CHEUNG Chi Wai, Chris [chris.cheung@hld.com] wrote:> I have add the ssh key to my .ssh/authorized_files. > > When I enter the command, the errors are as follow. > > [root@mandrake91 .ssh]# rsync mandrake82::XXXXX /rsynctest --recursive -e > ssh>From 'man rsync' - CONNECTING TO AN RSYNC SERVER OVER AREMOTE SHELL PROGRAM: In order to distinguish between the remote-shell user and the rsync server user, you can use '-l user' on your remote-shell command: rsync -av --rsh="ssh -l ssh-user" rsync-user@host::module[/path] local-path The "ssh-user" will be used at the ssh level; the "rsync-user" will be used to check against the rsyncd.conf on the remote host. HTH. -- Hardy Merrill Red Hat, Inc.> buffer_get: trying to get more bytes 129 than in buffer 46 > rsync: connection unexpectedly closed (0 bytes read so far) > sync error: error in rsync protocol data stream (code 12) at io.c(165) > > There is no errors when I do not use SSH > Please help