Re: rsync / ssh / Firewall "Hole" coolness

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Patrick Fleming, EA
Date:  
To: plug-discuss
Subject: Re: rsync / ssh / Firewall "Hole" coolness


-------- Original Message --------
Subject: Re: rsync / ssh / Firewall "Hole" coolness
Date: Tue, 25 Jan 2005 12:03:14 -0700
From: Patrick Fleming, EA <>
To:
References: <>



Ed Skinner wrote:
<snip>
>      From one office machine to the other the command to synchronize is very 
> straightforward:
> rsync -v -r -e ssh Common/ user@system:Common/
>      Make the appropriate substitutions for user and system. This will end up 
> in a cron entry (but gotta figure out where the password goes) that fires, 
> for example, at 2:00AM.

Use public/private keypairs and rsync -v -r -e "ssh -i
/path/to/identity/file" Common/ system:Common/

>      Synchronizing from office to home took a guess about how rsync would 
> actually implement the "-e ssh" option and, because this "feature" isn't 
> precisely documented, YMMV, but it seems to work on the four distributions I 
> have at my disposal. Here is the command:
> rsync -v -r -e "ssh -p port" Common/ user@system:Common/
>      Substitute the correct values for port, user and system.
>      The "trick" is putting the ssh command option, the "-p port", inside the 
> quotes with the "ssh" command itself to get ssh to use the specified port 
> number. (The man page for "rsync" *also* talks about port numbers, but those 
> are only relevent when using rsyncd *without* ssh.)
>      This too will end up in a cron entry (and with a password somewhere?) 
> that fires during the night as well, some time *after* the first one 
> finishes, or [better still] in a script that runs the first rsync, then this 
> one so they are sure to run in the necessary order, and neither too early nor 
> unnecessarily late.
>      And on my home systems, another cron entry will, at 5:00AM or so, rsync 
> those two machines. Presumably by 6:00AM or so, all four systems will be in 
> sync each day.

>
>      Don'cha just love Linux?

>


---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss