Why isn't the port specified in "pxssh.pxssh()" in this code?

94 views Asked by At
1

There are 1 answers

3
MegaEmailman On

I believe it's specified as an ssh option like in the following example:

from pexpect import pxssh
s = pxssh.pxssh(options={
                    "StrictHostKeyChecking": "no",
                    "UserKnownHostsFile": "/dev/null"})

The above snippet is from the documentation on pxssh: https://pexpect.readthedocs.io/en/stable/api/pxssh.html