Unknown error while starting the session
tuxmaster5000 opened this issue · 1 comments
tuxmaster5000 commented
Sample code:
connection = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
connection.settimeout(2)
try:
connection.connect((host.host_name, 22))
except socket.error as e:
self._logger.warning("Unable connect to {0}. {1}".format(host.host_name, e))
...
session = Session()
session.handshake(connection)
It will fails with:
File "ssh2/session.pyx", line 84, in ssh2.session.Session.handshake
File "ssh2/utils.pyx", line 191, in ssh2.utils.handle_error_codes
ssh2.exceptions.UnknownError: ('Error code %s not known', -5)
Version: 0.15.0
tuxmaster5000 commented
Version 0.27.0 fix it