ssh Are you sure you want to continue connecting (yes/no)

ssh Are you sure you want to continue connecting (yes/no)?
The authenticity of host '64.71.167.20 (8.171.128.256)' can't be established.
RSA key fingerprint is bf:fd:e4:52:fe:25:9c:72:f5:1f:49:77:cf:3b:85:79.
Are you sure you want to continue connecting (yes/no)?

ssh 连接时经常能碰到如上信息,如果一两台还可以手动输入,如果多了就麻烦下

可以使用 -o StrictHostKeyChecking=no 参数进行过滤

ssh -o StrictHostKeyChecking=no 8.171.128.256

也可以使用 expect 命令模拟键盘输入"yes"