-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
x/crypto/ssh: "ssh: handshake failed: EOF" with 3des-cbc #32075
Comments
/cc @hanwen |
Any update on this issue? I got the same problem. |
I've been on hoidays. I'll try to have a look one of these weeks. |
I've debugged. |
I had another user file a bug about this. I don't want to nag as I know how hard it can be to find time to work on things but I just wanted to ping the issue again to help it stay on the radar. Thanks. |
I am facing similar issue where I cant connect to docker IP and getting ssh: handshake failed EOF error. Copying snippet of my code `
}` Tried with and without default KeyExchanges. Getting below error
|
@eikenb the cause of this is most likely Encrypt-then-MAC (EtM) mode - 84bacda added support for Until this is fixed, the workaround would be to specify one or more MACs, excluding EtM (e.g. |
same issues happened, when try to use ssh key to execute some commands on the linux nodes by use net/dial.go to do it and
Most wired thing is that for some times it failed, while after reconciling and retry, it can work after retrying. |
I have got the same issues and also work after retry. |
Same issue. The real machine will connect to server via |
Maybe multiple ssh connection refuse by remote server.
|
Or just do: use 1 connection and mutilple sessions. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I help maintain the github.com/pkg/sftp library and am helping a user with an ssh issue. They have an SFTP server that only supports some older ciphers, like 3des-cbc and they can't connect successfully. I've tried to simplify and reproduce their issue with some success. I've configured my local openssh server to only accept that cipher, with
Ciphers 3des-cbc
in the sshd_config and was able to connect to it with the openssh client withssh -c 3des-cbc localhost
. If I don't specify-c 3des-cbc
on the command line it won't connect with a negotiation error. So everything seems good on that side.I then try to connect with a simple program using x/crypto/ssh set to use that same cipher and get the error
ssh: handshake failed: EOF
and the openssh server spits out the following in the log.My simple program to reproduce is..
What did you expect to see?
No error and have it connect.
What did you see instead?
ssh: handshake failed: EOF
Thanks.
The text was updated successfully, but these errors were encountered: