So, you already have your keys generated and installed. Here are the ssh options I use in my automation:
ssh -q -o StrictHostKeyChecking=no The StrictHostKeyChecking is the option that does what you were asking about. I feed it in as an argument to ssh within the script so that I do not have change it globally for any ssh client on that machine. The -q merely puts it in quiet mode and suppresses warnings and errors. More info is in ssh's man page. Joe -----Original Message----- From: cmdrwoody [mailto:[EMAIL PROTECTED] Sent: Thursday, October 21, 2004 6:34 PM To: [EMAIL PROTECTED] Subject: SSH 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? Thanks in advance! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]