Boniforti Flavio
2011-Mar-28 14:56 UTC
After successfull passwordless ssh login, unable to do rsync
Hello everybody. I got a strange problem, which I hope to solve with your help. I'm doing "remote backups" using rsync in an ssh tunnel. In the last setup I realized, something is driving me crazy and I can't find *what* the problem is. I managed to successfully login via ssh in a "passwordless" way (by means of RSA-keys). After this step is done and I'm logged into the remote host, I can type: rsync rsync://localhost and I get the correct reply: Dati Whenever I type rsync rsync://localhost/Dati I get prompted for the user password. This shouldn't be happening, so where do I have to look at? This is my /etc/rsyncd.conf: #motd file = /etc/rsyncd.motd #log file = /var/log/rsyncd.log pid file = /var/run/rsyncd.pid lock file = /var/run/rsync.lock use chroot = no [Dati] path = /volume1/Dati read only = no transfer logging = yes And following is /etc/rsyncd.secrets root:onOYcgV3xuMZA|1J0vxxUopcg Is there anything wrong? Kind regards, Flavio Boniforti PIRAMIDE INFORMATICA SAGL Via Ballerini 21 6600 Locarno Switzerland Phone: +41 91 751 68 81 Fax: +41 91 751 69 14 URL: http://www.piramide.ch E-mail: flavio at piramide.ch
Hendrik Visage
2011-Mar-28 15:20 UTC
After successfull passwordless ssh login, unable to do rsync
"rsync rsync://host" is different from "rsync -e ssh path host:/path" using ssh, you want the 2nd form On Mon, Mar 28, 2011 at 4:56 PM, Boniforti Flavio <flavio at piramide.ch> wrote:> Hello everybody. > > I got a strange problem, which I hope to solve with your help. > > I'm doing "remote backups" using rsync in an ssh tunnel. In the last > setup I realized, something is driving me crazy and I can't find *what* > the problem is. > I managed to successfully login via ssh in a "passwordless" way (by > means of RSA-keys). > After this step is done and I'm logged into the remote host, I can type: > > rsync rsync://localhost > > and I get the correct reply: > > Dati > > Whenever I type > > rsync rsync://localhost/Dati > > I get prompted for the user password. This shouldn't be happening, so > where do I have to look at? > > This is my /etc/rsyncd.conf: > > #motd file = /etc/rsyncd.motd > #log file = /var/log/rsyncd.log > pid file = /var/run/rsyncd.pid > lock file = /var/run/rsync.lock > use chroot = no > [Dati] > path = ?/volume1/Dati > read only = no > transfer logging = yes > > And following is /etc/rsyncd.secrets > > root:onOYcgV3xuMZA|1J0vxxUopcg> > Is there anything wrong? > > Kind regards, > Flavio Boniforti > > PIRAMIDE INFORMATICA SAGL > Via Ballerini 21 > 6600 Locarno > Switzerland > Phone: +41 91 751 68 81 > Fax: +41 91 751 69 14 > URL: http://www.piramide.ch > E-mail: flavio at piramide.ch > -- > Please use reply-all for most replies to avoid omitting the mailing list. > To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync > Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html >
Boniforti Flavio
2011-Mar-29 06:21 UTC
After successfull passwordless ssh login, unable to do rsync
Hello again...> > I have to say that on a similar setup, I'm succeeding with > the command > > I told you before. > > Then you are using the rsync daemon method, and you will have > to check on the server side to allow access without passwords > in /etc/rsyncd.conf, or make use of the environment variables > to pass the password to rsync on the client side.Server side is actually allowing me to passwordlessly connect to the ssh daemon. How is this to be related to rsyncd? Kind regards, Flavio Boniforti PIRAMIDE INFORMATICA SAGL Via Ballerini 21 6600 Locarno Switzerland Phone: +41 91 751 68 81 Fax: +41 91 751 69 14 URL: http://www.piramide.ch E-mail: flavio at piramide.ch