-
Notifications
You must be signed in to change notification settings - Fork 18k
x/crypto/ssh: Session.Run returns error EOF #28108
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
Please tell us exactly what you did: what program did you run, what was the complete output? Thanks. |
this is the code i run against some device which implements SSH server.
The program returns the following: unable to run the command: EOF. After I enabled debugMux variable
after changed WantReply to false in Start function in session.go
|
here is comment from @hanwen I have a question here. if the server doesn't send message when the command finishes, how the ssh client knows when it finish? |
The first trace looks OK; data is going over the wire. Why did you change wantReply? That would likely cause the remote end to error out. |
on the first trace, it ended up with returning EOF. The ssh client didn't get any data. |
the debugMux output looks completely different. |
@hanwen got it working. thanks for your reply! |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go1.10 darwin/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?darwin and amd64
What did you do?
I'm trying to run command on the device through ssh. I got same error with closed issue.
#16194
I tried changing WantReply to false. it didn't work.
please see the last comment.
What did you expect to see?
no error
What did you see instead?
error
The text was updated successfully, but these errors were encountered: