-
Notifications
You must be signed in to change notification settings - Fork 18k
/x/crypto/ssh : Handshake fails after update of x/crypto/ssh. #21793
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
/cc @hanwen |
please provide a debug dump (set debugHandshake = true) |
|
The debug dump with the old x/crypto/ssh version ('crypto/' from commit '5c68cfdf2a545b5ff576c075b459d1fc0c606f82'). This are logs for a passing run. Here we see the client uses globalRequestMsg instead of userAuthRequestMsg.
|
can you try to bisect the failure, so we know which commit is causing your problem? |
The working version is on a commit golang/crypto@5c68cfd from April,2015. There are many commits between then and now. I will try to reproduce the same problem in a sandbox so I can share the code and debug better. |
there is a 134 commits. With git-bisect, you would be able to track this down in ~8 test runs. |
ping? |
I have come to the understanding that this might be an issue with my ssh server. Sorry for bothering the community. Thank you for your input. Once I have fixed the issue. I will update the ticket with my findings for the community. |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.8.3 darwin/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOBIN="/Users/akshay/work/bin"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/akshay/work"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/w7/0b85306d06bfkd6sjzrz8v_80000gq/T/go-build354995448=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
What did you do?
I have a client that does ssh login to a openssh server. Before I updated my x/crypto/ssh the login works fine and the debug logs showed the ssh library using ssh.globalRequestMsg to authenticate. After update the library uses multiple calls of ssh.userAuthRequestMsg. And the login with the same private key fails.
Do I need to update the OpenSSH server as well ?
Any pointer on how I can debug this better ?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
What did you expect to see?
I expected to see a login since I can login with the same key to the same server using an older x/crypto/ssh.
What did you see instead?
I see a
unable to authenticate, attempted methods [none publickey], no supported methods remain
The text was updated successfully, but these errors were encountered: