https://github.com/tatmush/violentPython3/blob/master/Chapter-2/3-sshBrute.py
s = pxssh.pxssh()
s.login(host, user, password)
答案 0 :(得分:0)
我相信它被指定为ssh选项,如以下示例所示:
from pexpect import pxssh
s = pxssh.pxssh(options={
"StrictHostKeyChecking": "no",
"UserKnownHostsFile": "/dev/null"})
上面的摘录来自pxssh上的文档:https://pexpect.readthedocs.io/en/stable/api/pxssh.html