Hi,

* cmdrwoody <[EMAIL PROTECTED]> [041022 10:36]:
> Greeting all!
> 
> I am trying to write a script that ssh to all the computers in my
> school and perform automated tasks.  For a machine say, p30, i can
> just put ssh p30 <command> in my script to execute that command.  I
> have public-key authentication so no password is required.
> 
> Now if this is the first time I login to that machine, I will get the question
> 
> The authenticity of host 'p30 ' can't be established.
> RSA key fingerprint is .
> Are you sure you want to continue connecting (yes/no)?
> 
> And I have to type yes or no.  This is annoying since the script
> should be able to run automatically.  How can I make the script to
> accept this automatically?

Check the ssh_config man page. A very quick glance suggests that
maybe putting 

StrictHostKeyChecking=no

in your ~/.ssh/config might be what you want.

I thick you could also use something like

ssh -o StrictHostKeyChecking=no

Cheers,

Nick.


-- 
Debian 3.1
Linux twofish 2.6.9-looxt93c1 i686 GNU/Linux

Attachment: signature.asc
Description: Digital signature

Reply via email to