-
Notifications
You must be signed in to change notification settings - Fork 394
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
Race condition in sshd
.
#2852
Comments
My running theory is that using I'm at a loss on how we should properly fix this, but I'm wondering if just execing with |
cc @bluecmd :) |
I had similar issue with EOF when I was trying to write test for this command: #2963 and initially I was trying combinedOutput or Output and got only EOF. I tested sshd command with other ssh clients and saw no issues, but what seemed to work is to pipe Stdout and then I got an output. But still I have linux box where this test fails reliably :) |
Describe the bug
When using
x/crypto/ssh
to connect withsshd
there is no output from the session withCombinedOutput
. And manually using OpenSSH to connect tosshd
sometimes doesn't give any output back.I suspect there is a race condition somewhere but I have not managed to figure out where.
To Reproduce
Start
sshd
and usex/crypto/ssh
to open a session and useCombinedOutput
. It will fail withEOF
.Expected behavior
The command should return something.
Additional context
N/A
The text was updated successfully, but these errors were encountered: