【发布时间】:2014-12-11 20:29:27
【问题描述】:
我正在使用 phpseclib 连接到刚刚创建的服务器。它永远不会出现在~/.ssh/known_hosts 中。为了防止发生脚本超时,我想绕过警告:
The authenticity of host 'xxx.xxx.xxx.xxx' can't be established.
RSA key fingerprint is xxx.
Are you sure you want to continue connecting (yes/no)?
我知道可以将标志传递给 OpenSSH 以禁用此真实性检查:
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no user@xxx.xxx.xxx.xxx
这是一个已经进入 phpseclib 的功能吗?
【问题讨论】: