If you need to automate you remote scripting, like I do and without having being bothered to enter 'Yes' when being prompted to accept the key or with any other prompts you might see.
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ${user}@${host}