rsync not working for me

Giles Orr gilesorr-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Mon May 19 20:03:37 UTC 2008


On Sat, May 17, 2008 at 3:01 PM,  <chris-n/jUll39koHNgV/OU4+dkA at public.gmane.org> wrote:
> I just got a refurbished computer with ubuntu 8.04 installed. I \'m trying
> to use rsync -a to copy files from my backup to this machine. What am I
> doing wrong?
> administrator at administrator-desktop:~$ sudo rsync -a
> 192.168.0.3:/bckupdrv/docs2bckup
> [sudo] password for administrator:
> Read from socket failed: Connection reset by peer
> rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
> rsync error: unexplained error (code 255) at io.c(454) [receiver=2.6.9]
> administrator at administrator-desktop:~$ sudo rsync -a
> 192.168.0.3:/bckupdrv/docs2bckup /home/administrator
> Read from socket failed: Connection reset by peer
> rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
> rsync error: unexplained error (code 255) at io.c(454) [receiver=2.6.9]
> administrator at administrator-desktop:~$ ping 192.168.0.3
> PING 192.168.0.3 (192.168.0.3) 56(84) bytes of data.
> 64 bytes from 192.168.0.3: icmp_seq=1 ttl=64 time=0.422 ms
> 64 bytes from 192.168.0.3: icmp_seq=2 ttl=64 time=0.416 ms
> 64 bytes from 192.168.0.3: icmp_seq=3 ttl=64 time=0.334 ms
> Both machines have openssh-client and openssh-server installed.

A little late, but let's give it a try:

You're not telling rsync to run over ssh, so the rsync command you're
using will attempt to connect to the other machine via rsh by default.
 Fortunately, rsh is almost certainly not running on the other machine
- it's disabled on pretty much all distros these days.  Be happy, as
everything would have been transmitted in the clear: your password and
all the data files.

Most likely all you need to do is add "--rsh=ssh" to the command and
you're on your way.  This tells rsync to use ssh as the shell rather
than rsh.

-- 
Giles
http://www.gilesorr.com/
gilesorr-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list