Skip to content
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

when calling channelShell, ghc throws SOCKET_DISCONNECT #23

Open
dwat3r opened this issue Nov 18, 2014 · 0 comments
Open

when calling channelShell, ghc throws SOCKET_DISCONNECT #23

dwat3r opened this issue Nov 18, 2014 · 0 comments

Comments

@dwat3r
Copy link

dwat3r commented Nov 18, 2014

When i use the channelShell function in my program, the ssh server sends SOCKET_DISCONNECT error when i try to connect to it.

I've looked into the ssh server logs,and it says:

Nov 19 09:00:10 varch sshd[13210]: Accepted password for dwat3r from 127.0.0.1 port 44237 ssh2
Nov 19 09:00:10 varch sshd[13210]: pam_unix(sshd:session): session opened for user dwat3r by (uid=0)
Nov 19 09:00:10 varch sshd[13212]: Packet integrity error (4 bytes remaining) at session.c:2196

what is the problem?

@dwat3r dwat3r changed the title binding error with libssh2 channel_process_startup when calling channelShell, ghc throws SOCKET_DISCONNECT Nov 19, 2014
qnikst added a commit to qnikst/libssh2-hs that referenced this issue Apr 10, 2015
channelShell function passed additional data and have not
pass integrity check my modern openssh servers.
This patch fixes this issue.

X-GitHub-Issue-No: portnov#23
X-GitHub-Url: portnov#23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant