Description
What version of Go are you using (go version
)?
go version go1.7.4 darwin/amd64
What operating system and processor architecture are you using (go env
)?
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/lucaswxp"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/mw/y5nw62813y9105dl9n5wy6_40000gn/T/go-build710665517=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
What did you do?
Tried creating a SSH client:
c := &ssh.ClientConfig{User:"a",Auth:[]ssh.AuthMethod{ssh.Password("b")}}
_, err := ssh.Dial("tcp", "x.x.x.x:22", c)
if err != nil {
fmt.Printf("%s", err)
}
What did you expect to see?
Successful login. I can login in terminal, but any host I put in .Dial() I get the following error:
What did you see instead?
ssh: handshake failed: ssh: unexpected message type 3 (expected one of [6])
What is type 3 error? Any host I put I get this message.