rsync + ssh or what?

jw schultz
Wed, 14 May 2003 10:06:10 -0000

On Tue, May 13, 2003 at 04:51:52PM -0700, 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@publicIPforB:/home/backup/back_me_up /home/backup". Now I have
added
> boxB in front of boxC.
>
>
> boxA(publicIPforA)
>
<------>Internet<------>(publicIPforB)boxB(privateB)<--->(privateC)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.

This really isn't an rsync question.

There are a number of approaches.  One is to use ssh's port
forwarding.  I assume boxB is your firewall.  I would advise
against allowing a box conneected to both the internal and
public networks to accept ssh connections from the public
network or even to have any user accounts.  You can use
reverse NAT or a proxy to forward a port on boxB to port 22
on boxC, which has it's own hazards.  I suggest you do some
serious reading on firewalling and how to configure them.

The safest approach would be for boxC to initiate the rsync
connection.

--
________________________________________________________________
	J.W. Schultz            Pegasystems Technologies
	email address:		jw@pegasys.ws

		Remember Cernan and Schmitt