On 01-Dec-00 at 14:59:38 John Horne wrote:
> On 01-Dec-00 at 14:13:33 Adye, TJ (Tim) wrote:
>>> I am trying to work out how I can use rsync with ssh but also 
>>> specifying the key to use. I want to run rsync/ssh via cron but need to
>>> use different keys from the same account. With just ssh this is not a
>>> problem - the -o option takes care of it.
>> 
>> Which version of ssh is this? I use Unix ssh 1.2.x, and the option is -i.
>> I run rsync with
>> 
>>   rsync -e"ssh -x -a -i IdFile"
>> 
Okay I've got this fixed now :-) I've been trying to use something like:

  -e "ssh -o'IdentityFile2 ~/.ssh/xxkey'"

for some reason something doesn't like the arrangement of quotes (I have
tried swapping them around but to no effect). I don't know if its rsync, ssh
or the Korn shell I'm using (on a Sun system). Anyway, by using:

  -e "ssh -oIdentityFile2=~/.ssh/xxkey"

this works fine :-) The first form is valid, but as said something doesn't
like it.

Thanks for your help,

John.
PS - for those reading this and use openSSH from cron and kept getting the
'Pseudo-tty will not be allocated...' message back (very annoying), I have
received a patch for this since I pointed out on the developers list that
the '-T' option was supposed to prevent a tty being allocated (and hence the
message was not necessary). Hopefully the next release of openSSH will have
this fixed once and for all :-)

------------------------------------------------------------------------
John Horne, University of Plymouth, UK           Tel: +44 (0)1752 233914
E-mail: [EMAIL PROTECTED]
PGP key available from public key servers

Reply via email to