我已经编写了这个小实用程序脚本: for h in $SERVER_LIST; do ssh $h "uptime"; done 将新服务器添加到时$SERVER_LIST,该脚本将通过以下方式停止: 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)? 我已经试过yes: for h in $SERVER_LIST; do yes | ssh $h "uptime"; done 没有运气。 有没有一种方法可以ssh自动接受任何新密钥?