-
Notifications
You must be signed in to change notification settings - Fork 3
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
Error 5042 when using libssh2_channel_shell.vi. #9
Comments
This looks like an issue in the transport layer between libssh2 and your server. In principle, this should work out of the box. Without the code it is difficult to say why it fails. Please try the channel_request_pty example included with the library. It is based on the example from libssh2 and available from the example finder when using the directory view: |
Good catch. Took me a while to figure out what is wrong here. Turns out that
These are the extra bytes that cause the error. The fix is to provide NULL for |
The fix is included in the latest release: https://github.com/logmanoriginal/lvssh2/releases/tag/0.3.0 Let me know if this fixes your issue. |
This, indeed, fixes my issue, tysm. Is there any way I can support your work? |
Awesome, thanks for the feedback! As for support, please don't hesitate to report further bugs an issues you may discover. I'm pretty confident in the stability of this library but sometimes there are strange behaviors like the one you discovered here. Thanks again for reporting this issue :) |
Hi
whenever I try to open a shell with
libssh2_channel_shell.vi
I get error 5042.libssh2_session_last_error.vi
converts this toerror -43, Failed waiting for channel success
.I'm not sure if this is necessary but i do request a PTY via
libssh2_channel_request_pty.vi
.When this happens, the server reports the following message:
session_shell_req: parse packet: Connection from user <user> <ip> port <port>: unexpected bytes remain after decoding
I looked at example C code and tried to port that to LabVIEW using this library. Am I missing something obvious that needs to be done in LabVIEW to make this work?
The text was updated successfully, but these errors were encountered: