Re: rsync / ssh -i

2003-12-05 Thread John Van Essen
On Thu, 4 Dec 2003, Michael [EMAIL PROTECTED] wrote:
 I know that with ssh I can issue the -i command to use a different identity.
 Is there anyway to use the -i command with rsync and ssh?  Thank you.
 
 Michael

In addition to what Martin suggested, you can also include the -i option
and its argument in rsync's -e option argument:

rsync {options} -e 'ssh -i /path/to/identity' {source} {dest}

I use this form quite frequently in scripts.
-- 
John Van Essen  Univ of MN Alumnus  [EMAIL PROTECTED]

-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: rsync / ssh -i

2003-12-04 Thread Martin Pool
On  4 Dec 2003, Michael [EMAIL PROTECTED] wrote:
 I know that with ssh I can issue the -i command to use a different identity.
 Is there anyway to use the -i command with rsync and ssh?  Thank
 you.

Use the IdentityFile and Host keywords in your ssh_config:

  Host suzy-alt-key
  HostName suzy.foo.org
  IdentityFile ~/.ssh/id_some_other_dsa

-- 
Martin 
   linux.conf.au -- Adelaide, January 2004


signature.asc
Description: Digital signature
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html