Hello, I'm trying to make rsync work over ssh. I've read several possibilities how to do this, but I haven't succeeded so far. Here's what I want to accomplish : Internet server <==== SSH Tunnel over the Internet ==> Firewall <-----rsync ----> Backup server (rsync & SSH client) (SSH server) (rsync daemon) In plain text : - I want to set-up a SSH tunnel over the Internet to connect to a firewall onto which an SSH daemon is running - Through the SSH tunnel I want to send rsync traffic to a backup server, sitting behind the firewall and running rsync in daemon mode Here is the command I tried to use : rsync -e "ssh -p 1142 -l sshuser [firewallip] -" -av --progress --delete -z ./ rsyncuser@[backupserverip]:testdir This gives me a bash error on "-" after I successfully logged on to the ssh server. I verified that the rsync daemon is running correctly. No firewall rules are blocking rsync traffic from the firewall to the backup server. Can somebody provide me the correct syntax? Thanks in advance! Bart.
On Fri, 11 Apr 2003, Bart Boelaert bart.boelaert-at-pandora.be |Rsync List| wrote:> Hello, > > I'm trying to make rsync work over ssh. I've read several possibilities how > to do this, but I haven't succeeded so far. Here's what I want to accomplish... trimmed ...> Here is the command I tried to use : > rsync -e "ssh -p 1142 -l sshuser [firewallip] -" -av --progress --delete -z > ./ rsyncuser@[backupserverip]:testdirBart: The problem is that rsync does not seem to handle options on its "rsh" command properly. Lots of commands that use ssh seem to have this problem, so my workaround is to create a small shell script ("ssh_1142.sh") which contains the command and options you want to use, then call rsync like: rsync -e /path/to/ssh_1142.sh -av --progress --delete -z ./ rsyncuser@[backupserverip]:testdir This solves those nasty execvp() failed problems. -- Steve