1 |
On May 31, 2006, at 2:57 AM, Anthony Roy wrote: |
2 |
|
3 |
> Hi all, |
4 |
> |
5 |
> I am trying to get an rsync server running on my Gentoo server box in |
6 |
> order to run backups to the server from my other machines. I have a |
7 |
> very simple rsyncd.conf file, (see below), and from what I can tell, I |
8 |
> should be able to rsync some files across from a different box. |
9 |
> |
10 |
> The command I am using to rsync from a different box is: |
11 |
> |
12 |
> rsync -avz test.xml 192.168.0.100:rsync |
13 |
> |
14 |
> I have also tried the following with the same results: |
15 |
> |
16 |
> rsync test.xml 192.168.0.100:rsync |
17 |
> |
18 |
> The result is that I am continually prompted for a password. As far as |
19 |
> I can tell from the rsyncd.conf no password should be required (which |
20 |
> is fine as the rsync port cannot be reached from outside the |
21 |
> intranet). |
22 |
> |
23 |
> The rsyncd: |
24 |
> |
25 |
> # This line is required by the /etc/init.d/rsyncd script |
26 |
> pid file = /var/run/rsyncd.pid |
27 |
> use chroot = yes |
28 |
> read only = false |
29 |
> log file = /var/log/rsyncd.log |
30 |
> |
31 |
> # Simple example for enabling your own local rsync server |
32 |
> [rsync] |
33 |
> path = /srv/rsync |
34 |
> comment = Main Rsync Server |
35 |
> |
36 |
> Any help appreciated. |
37 |
> |
38 |
> -- |
39 |
> Ant... |
40 |
> |
41 |
> -- |
42 |
> Anthony Roy |
43 |
|
44 |
unless you say otherwise, rsync uses ssh. unless you set it up to |
45 |
use key authentication, ssh will require a password. what i do in |
46 |
such instances, is set up a special user with read access to the |
47 |
files to be backed up, create a key with ssh-geygen on the backup |
48 |
server. then on the server to be backed up, for that user put it in |
49 |
~/.ssh/authorized_keys. with the rsync command you can force it to |
50 |
use a particular credential to auth to ssh with. |
51 |
-- |
52 |
gentoo-user@g.o mailing list |