Rsync with SSH problem
hmerrill at redhat.com
Tue Aug 26 03:44:42 EST 2003
CHEUNG Chi Wai, Chris [chris.cheung at 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 at mandrake91 .ssh]# rsync mandrake82::XXXXX /rsynctest --recursive -e
>From 'man rsync' - CONNECTING TO AN RSYNC SERVER OVER A
REMOTE 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 at host::module[/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.
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
More information about the rsync