rsync + ssh or what?

Tom Scanlan tscanlan at
Fri May 16 01:33:45 EST 2003

This is not really an rsync problem.  To solve your problem look into 
SSH tunneling on google.  As an minimally tested example:

#in one terminal, open the tunnel
#(link local port 2222 to port 22 on hairball by tunneling through pribateB)
user at boxC$* ssh -L 2222:publicIPforA:22 privateB*

# in another terminal,
#(using ssh -p2222 as the rsh replacement, connect to "localhost"
#    (really localhost:2222), and rsync from here to "localhost"
#    (again, really localhost:2222))
user at boxC$ rsync -e"ssh -p2222" /home/backup back_me_up 

Paul O'Neil wrote:

>Hey guys sorry for this newbie type  post but I'm not getting it really. I
>see other posts that r asking a simliar question but I'm not understanding.
>Currently I have working boxA and BoxC. SSH is the only thing accepted. So
>currenty I'm backing up files on boxC with "rsync -e ssh
>user at publicIPforB:/home/backup/back_me_up /home/backup". Now I have added
>boxB in front of boxC.
>Now obviously as u guys have been discussing I think, I need to back up the
>files from boxC still to A. I RTFM and am still confused. I want to be able
>to SSH to port 22 on B from A of course. Currently if I need to get to C I
>SSH to B then SSH to C.

-Tom Scanlan
Network Operations
OpenReach, Inc.

More information about the rsync mailing list