I've written this small utility script:
for h in $SERVER_LIST; do ssh $h "uptime"; done
When a new server is added to $SERVER_LIST
, the script is stopped with:
The authenticity of host 'blah.blah.blah (10.10.10.10)' can't be established.
RSA key fingerprint is a4:d9:a4:d9:a4:d9a4:d9:a4:d9a4:d9a4:d9a4:d9a4:d9a4:d9.
Are you sure you want to continue connecting (yes/no)?
I've tried yes
:
for h in $SERVER_LIST; do yes | ssh $h "uptime"; done
with no luck.
Is there a way to parametrize ssh
to automatically accept any new key?