I am writing a perl script to automate the spinning up of new instances in Amazon's EC2 cloud computing environment. The script will launch a new instance, do some admin on it via putty or ssh, and update some other config information (such as letting a proxy know that it can balance to the new server).
The problem is that when spinning up a new instance, the first interaction with putty or ssh requires you to confirm the fingerprints of the new server. I want to either skip this or tell the process prompt 'yes' to confirm and move on. Can I respond to this prompt in a perl script with a canned response, and if so, how?