使用ssh登录一遍,在通过sshpass登录即可
ssh -p 22 -o StrictHostKeyChecking=no [email protected]
注:最好先查看下是否有ssh免密登陆的配置,有的话清空即可