Closed GevatterGaul closed 3 years ago
Hello,
Thank you for the interest.
ssh2.exceptions.BadUseError
refers to bad API use. An execute call can only be done once per channel. Execute will need to be done after a new session.open_session()
.
Or use interactive shell with chan.shell()
.
Bug report
Description
I'm experiencing a bad use error when trying to execute more than one command on an open channel.
Steps to reproduce:
Expected behaviour:
I expected the second call to execute to complete as the first one did.
Actual behaviour:
I got a bad use error on the second execute.
Additional info:
System libssh2 has version 1.9.0-2 on Manjaro. ssh2-python has version 0.23.0 Python version 3.8.6 on 64bit Manjaro.