I am trying to use pxssh
module to make SSH connection to the client - however I am getting
ImportError: No module named pxssh
I
If the problem is not resolved by the earlier suggestion:
from pexpect import pxssh
The pexpect library might be outdated, so run:
sudo pip install pexpect --upgrade
If /usr/lib/python2.7/site-packages/pexpect/pxssh.py exists, then use the below command
python2.7 'yourprogram.py'
as python command is not linked to 2.7 version. Please check python -V to get the version.
Well, try from pexpect import pxssh
.
update:
The solution only works for Linux as pxssh
is not supported on Windows