SUMMARY
ISSUE TYPE
PYLISSH and LIBSSH VERSION
OS / ENVIRONMENT
STEPS TO REPRODUCE
clone repo and build the binaries
Refer: https://github.com/ansible/pylibssh#building-the-module
Add binary file PYTHONPATH
$ export PYTHONPATH="${PYTHONPATH}:<path-to-cloned-repo>/src"
Run below python script
import os
from pylibsshext.session import Session
from pylibsshext.errors import LibsshSessionException
ssh = Session()
HOST = "<changeme>"
USER = "<changeme>"
PASSWORD = BECOME_PASSWORD = "<changeme>"
try:
ssh.connect(
host=HOST,
user=USER,
password=PASSWORD,
timeout=30,
port=22,
look_for_keys=False
)
except LibsshSessionException as ex:
print(str(ex))
print(ssh.is_connected)
EXPECTED RESULTS
Password authentication should work
ACTUAL RESULTS
Password authentication fails
SUMMARY
ISSUE TYPE
PYLISSH and LIBSSH VERSION
OS / ENVIRONMENT
STEPS TO REPRODUCE
clone repo and build the binaries
Refer: https://github.com/ansible/pylibssh#building-the-module
Add binary file PYTHONPATH
$ export PYTHONPATH="${PYTHONPATH}:<path-to-cloned-repo>/src"Run below python script
EXPECTED RESULTS
Password authentication should work
ACTUAL RESULTS