Networking Forums

Networking Forums > Computer Networking > Linux Networking > rsync and ssh authentification

Reply
Thread Tools Display Modes

rsync and ssh authentification

 
 
Suresh Le Rochus
Guest
Posts: n/a

 
      03-19-2006, 10:29 PM
hello,

I recently installed rsync to test it and I am experiencing some problem
using authentification with it.
My /etc/rsyncd.conf is like that:
"
[share_rsync]
path = /sauvegarde/intern
comment = Synchro fichiers internes
read only = false
auth users = test1
secret file = /etc/rsyncd.secrets
list = true
"
and my /etc/rsyncd.secrets file:
"
test1:test
#blank line
"
On the other computer I have this:
"
rsync -avnz --stats --progress test1@192.168.0.4::share_rsync/
/cygdrive/d/temp
Password:
@ERROR: auth failed on module share_rsync
rsync error: error starting client-server protocol (code 5) at main.c
(1296) [receiver]
"
When prompted I typed "test" like it is configured in the file.
I don't understand why it doesn't work.

I did some research on the net, and I found that in the rsyncd.conf file,
some use "secret file" and other "secrets file". I tested both of them
but it still doesn't work.

Of course, when I comment the lines "auth users" and "secret file" it
works, but anyone can write on it!

And another problem with SSH, but the same nature (authentification):
My ssh server is perfectly runing on my server and *I can log on it with
"login" and "password".
I tried to use rsync over SSH to secure the transfer.
I had this :
"
rsync -avnz -e "ssh -l login" --stats --progress test1@
192.168.0.4::share_rsync/ /cygdrive/d/temp
login@192.168.0.4's password:
@ERROR: chroot failed
rsync error: error starting client-server protocol (code 5) at main.c
(1296) [receiver]
"
what's this chroot failed error? I thought the "use chroot" option was
true by default.

Thank you.

--
Suresh Le Rochus
 
Reply With Quote
 
 
 
 
Suresh Le Rochus
Guest
Posts: n/a

 
      03-19-2006, 11:55 PM
Suresh Le Rochus <(E-Mail Removed)> wrote in
news:Xns978C502D5A93sureshtiscalifr@81.174.50.80:

> hello,
>
> I recently installed rsync to test it and I am experiencing some
> problem using authentification with it.
> My /etc/rsyncd.conf is like that:
> "
> [share_rsync]
> path = /sauvegarde/intern
> comment = Synchro fichiers internes
> read only = false
> auth users = test1
> secret file = /etc/rsyncd.secrets
> list = true
> "
> and my /etc/rsyncd.secrets file:
> "
> test1:test
> #blank line
> "
> On the other computer I have this:
> "
> rsync -avnz --stats --progress test1@192.168.0.4::share_rsync/
> /cygdrive/d/temp
> Password:
> @ERROR: auth failed on module share_rsync
> rsync error: error starting client-server protocol (code 5) at main.c
> (1296) [receiver]
> "
> When prompted I typed "test" like it is configured in the file.
> I don't understand why it doesn't work.
>
> I did some research on the net, and I found that in the rsyncd.conf
> file, some use "secret file" and other "secrets file". I tested both
> of them but it still doesn't work.
>
> Of course, when I comment the lines "auth users" and "secret file" it
> works, but anyone can write on it!
>
> And another problem with SSH, but the same nature (authentification):
> My ssh server is perfectly runing on my server and *I can log on it
> with "login" and "password".
> I tried to use rsync over SSH to secure the transfer.
> I had this :
> "
> rsync -avnz -e "ssh -l login" --stats --progress test1@
> 192.168.0.4::share_rsync/ /cygdrive/d/temp
> login@192.168.0.4's password:
> @ERROR: chroot failed
> rsync error: error starting client-server protocol (code 5) at main.c
> (1296) [receiver]
> "
> what's this chroot failed error? I thought the "use chroot" option was
> true by default.
>
> Thank you.
>



sorry, the SSH tunel is working correctly, it's a problem with rsync
configuration.
There's something strange, because when I do:
"
rsync -avz --stats --progress 192.168.0.4::share_rsync/ /cygd
rive/d/temp/
"
it works, but if I do:
"
rsync -avz -e "ssh -l login" --stats --progress 192.168.0.4::share_rsync/
/cygd
rive/d/temp/
"
it doesn't and says the same chroot error !

--
Suresh Le Rochus
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rsync Mtek Linux Networking 21 07-25-2008 12:59 AM
How to get log file for rsync operation? Does rsync also delete remote files? Goran Ivanic Linux Networking 9 05-05-2008 04:58 PM
Linux, Windows Server 2008 and authentification Roger Eriksson Linux Networking 0 02-25-2008 07:49 AM
Authentification Private Home Networking 1 03-07-2004 02:49 PM
Squirrelmail 1.4.1 Authentification (Suse 8.2) Martin Bertschi Linux Networking 0 07-09-2003 05:25 PM



1 2 3 4 5 6 7 8 9 10 11