how can I use rsync between 2 accounts?
yinglcs at gmail.com
Mon Mar 19 04:59:50 GMT 2007
On 3/18/07, Mark Schoonover <schoon at amgt.com> wrote:
> ying lcs wrote:
> > On 3/18/07, Louis-David Mitterrand <vindex+lists-rsync at apartia.org>
> > wrote:
> >> On Sun, Mar 18, 2007 at 02:11:21PM -0500, ying lcs wrote:
> >>> I have 2 linux accounts on different machines (same login, same
> >>> password). Can you please tell me how I use rsync directories
> >>> between 2 accounts?
> >> ssh host1 "rsync <options> /my/dir host2:/my/dir"
> > Thanks. If I need to put the above in a script and kick off a cron
> > job, how can I specified the ssh user name and password without user
> > enters it?
> I have directions on my blog for password less SSH configuration:
> You won't have to use username/password at all with rsync.
Thanks. I try this on fedora 5. I get 'too many argument'
$ ssh-keygen –t dsa –f ~/.ssh/id_dsa –N ""
Too many arguments.
Usage: ssh-keygen [options]
> Mark Schoonover *** Winner of the 2008 Best Psychic Award
> IS Manager
> American Geotechnical - California, Nevada and Arizona
> V-> 858.450.4040 F-> 714.685.3909 C-> 858.472.3816
More information about the rsync