-
Notifications
You must be signed in to change notification settings - Fork 75
Fail to open a shell #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
…ypes with no message. Add integration tests for interactive shell request and process startup. Resolves #18.
…ypes with no message. Add integration tests for interactive shell request and process startup. Resolves #18.
Hi there, Thanks for the interest and report. Yes, this is an issue with the The next version will have a From next version onwards:
Note that a pty is not explicitly required for interactive shells though it may be used. |
Yes indeed, the macro in libssh2 uses a null pointer as message. My knowledge of Cython is limited, but I'll try to submit a pull request if I find the time. Thanks a lot! |
That was fast, it's small fix but still. Thanks a lot, though I will open a new ticket. I would like to test your branch and the only way to find how to build it was to look at Travis. Keep up the good work! |
…ypes with no message. Add integration tests for interactive shell request and process startup. Resolves ParallelSSH#18.
Bug report
Using
libssh2
examples, I tried opening shell inside a channel inssh2-python
and it failed. I need to have a channel and a shell kept open for re-use. I cannot useexec
because usingexec
to run a command closes the channel (which is expected).Here is an example in the tests of
libssh2
:https://github.com/libssh2/libssh2/blob/master/tests/ssh2.c#L152
libssh2_channel_shell
is a macro:https://github.com/libssh2/libssh2/blob/master/include/libssh2.h#L775
I get a
LIBSSH2_ERROR_SOCKET_DISCONNECT
error code (-13
) when trying to open the shell.https://github.com/libssh2/libssh2/blob/master/include/libssh2.h#L451
Steps to reproduce:
Run the SSH daemon locally and add an SSH public key to the
authorized_hosts
file of any user (hereroot
)Run the following Python script.
Expected behaviour: 0 error code on shell request
Actual behaviour: error on shell request
Additional info:
libssh2-1:amd64 1.5.0-2ubuntu0.1
libssh2-1-dev:amd64 1.5.0-2ubuntu0.1
python-libssh2 1.0.0-1.2
The text was updated successfully, but these errors were encountered: