I'm getting an error trying to pull a file with ssh/rsync: $ rsync -e 'ssh -i .ssh/id_rsa' test@server.com::www/index.html index.html rsync: unable to open configuration file "rsyncd.conf": No such file or directory rsync error: syntax or usage error (code 1) at clientserver.c(502) rsync: connection unexpectedly closed (0 bytes read so far) rsync error: error in rsync protocol data stream (code 12) at io.c(165) The /etc/rsyncd.conf file on server.com is indeed there: log file = /var/log/rsyncd [www] path = /home/www/public_html If I use root it works: $ rsync -e ssh root@server.com::www/index.html index.html root@server.com's password: ******** $ What's the problem? Thanks, Mike -- A program should be written to model the concepts of the task it performs rather than the physical world or a process because this maximizes the potential for it to be applied to tasks that are conceptually similar and, more important, to tasks that have not yet been conceived.
On Mon, Nov 24, 2003 at 04:15:13PM -0500, Michael B Allen wrote:> I'm getting an error trying to pull a file with ssh/rsync: > > $ rsync -e 'ssh -i .ssh/id_rsa' test@server.com::www/index.html index.html > rsync: unable to open configuration file "rsyncd.conf": No such file or > directory > rsync error: syntax or usage error (code 1) at clientserver.c(502) > rsync: connection unexpectedly closed (0 bytes read so far) > rsync error: error in rsync protocol data stream (code 12) at io.c(165) > > The /etc/rsyncd.conf file on server.com is indeed there: > > log file = /var/log/rsyncd > > [www] > path = /home/www/public_html > > If I use root it works: > > $ rsync -e ssh root@server.com::www/index.html index.html > root@server.com's password: ******** > $ > > What's the problem?It sounds like the /etc/rsyncd.conf file isn't readable by the user "test". -- ________________________________________________________________ J.W. Schultz Pegasystems Technologies email address: jw@pegasys.ws Remember Cernan and Schmitt
Maybe Matching Threads
- unable to open configuration file rsyncd.conf
- Bug in rsyncd 2.5.0 while handling config file string values
- Incoming rsync connection attempts
- A question about connection refused
- DO NOT REPLY [Bug 4757] New: Daemon mis-logs paths if module path in rsyncd.conf is relative