I have setup rsync to run as a deamon exporting one module named home. when I attempt to use the rsync syntax specified on http://samba.anu.edu.au/ftp/rsync/rsync.html as follows: rsync -av -e "ssh -l ssh-user" rsync-user@host::module /dest I get a message from ssh, "bad escape character 'ssh -l username'". This is an ssh error message, but I am not putting any escape characters in. My goal is to use rsync tunneled over ssh to connect to a remote rsync daemon. I've looked into a backgrounded ssh session with port forwarding, but it seems rather brittle. Any pointers on making a secure connection to rsync in daemon mode would be appreciated. -- David Bear phone: 480-965-8257 fax: 480-965-9189 College of Public Programs/ASU Wilson Hall 232 Tempe, AZ 85287-0803 "Beware the IP portfolio, everyone will be suspect of trespassing"
On Mon, Mar 06, 2006 at 04:25:53PM -0700, David Bear wrote:> I get a message from ssh, "bad escape character 'ssh -l username'".Using one extra -v will show you the ssh command that rsync is running, and that will allow you to test it outside of rsync. Then (assuming you get the same error), you can ask the ssh folks what is going wrong. Perhaps you have an error in your .ssh/config file?> My goal is to use rsync tunneled over ssh to connect to a remote rsync > daemon.You won't accomplish that with the rsync syntax you mentioned. See method 4 on this page: http://rsync.samba.org/firewall.html You can use the method mentioned there with the target system being "localhost" if there is no separate middle system needed. ..wayne..