You are not logged in.

#1 2010-02-15 12:40:15

llawwehttam
Member
From: United Kingdom
Registered: 2010-01-19
Posts: 181

Having a bit of bother with rsync

I installed rsync on my arch box but when I try to rsync to it from another computer I get:

$ rsync -avz .* 192.168.1.20:/home/llawwehttam/conky/
ssh_exchange_identification: Connection closed by remote host
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(600) [sender=3.0.6]

The username is the same on both machines and I have used rsync fine from this machine before.
I can't rsync out of the arch box either.

Any ideas?

Just to clarify I can ssh in an out of the arch and ubuntu machines fine

Last edited by llawwehttam (2010-02-15 12:44:39)

Offline

#2 2010-02-15 15:56:19

DeeCodeUh
Member
From: Michigan, USA
Registered: 2007-11-27
Posts: 176

Re: Having a bit of bother with rsync

It's been about a year since I've done this, but did you exchange ssh-keys, so that you can automatically log in from that machine without a password?

It has to do with the ssh-keygen command.

Another idea...

Don't you have to specify what user to use as a parameter in the rsync command?

Last edited by DeeCodeUh (2010-02-15 15:59:45)

Offline

#3 2010-02-15 16:02:23

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: Having a bit of bother with rsync

Can you ping?


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#4 2010-02-15 16:14:46

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: Having a bit of bother with rsync

Try changing .* to just .   I've always just used .   with rsync.  Just a guess. You could also try adding '-e ssh' as an option, too.

Scott

Offline

#5 2010-02-15 16:40:26

llawwehttam
Member
From: United Kingdom
Registered: 2010-01-19
Posts: 181

Re: Having a bit of bother with rsync

Right, to reply to those,

Yes I can ping
no I have not exchanged keys
I have also tried the -e ssh option.

No luck.

Just to clarify From my ubuntu box I can rsync fine except to this arch box and the arch box cannot rsync to anything.
Bit strange really.

Offline

#6 2010-02-15 16:44:24

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: Having a bit of bother with rsync

Does normal ssh work?


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#7 2010-02-15 16:45:30

llawwehttam
Member
From: United Kingdom
Registered: 2010-01-19
Posts: 181

Re: Having a bit of bother with rsync

toad wrote:

Does normal ssh work?

Yes normal ssh works fine. Thats why I thought it was strange...

Offline

#8 2010-02-15 16:55:17

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: Having a bit of bother with rsync

hope this guide may help you.

Offline

#9 2010-02-15 16:58:15

llawwehttam
Member
From: United Kingdom
Registered: 2010-01-19
Posts: 181

Re: Having a bit of bother with rsync

kgas wrote:

hope this guide may help you.

Nice guide but I'm not sure how that helps my problem...
I've been using rsync for 6 months on ubuntu, fedora, debian and now arch and arch is the only one I've seen problems with.

Last edited by llawwehttam (2010-02-15 16:59:16)

Offline

#10 2010-02-15 19:28:34

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: Having a bit of bother with rsync

have you tried rsync -avz user@IPaddress:/path/to/directroy/file ~/Dest. This works fine for me.

Offline

#11 2010-02-15 21:53:53

llawwehttam
Member
From: United Kingdom
Registered: 2010-01-19
Posts: 181

Re: Having a bit of bother with rsync

I have finally got it working. After having a permissions problem when I installed arch I checked and /usr/bin/rsync was owned by root and unreadable. When run as root it worked fine so ran chmod 755 on it and all is good. I have no idea why the perms were wrong in the first place. Thats left me a bit puzzled. Anyway at least its working.

Offline

Board footer

Powered by FluxBB