x/crypto/ssh: possible ssh-ed25519 parse bug #47192
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Don't know
What operating system and processor architecture are you using (
go env
)?GO111MODULE=
set GOARCH=amd64
set GOBIN=
GOHOSTARCH=amd64
set GOHOSTOS=windows
go env
OutputWhat did you do?
Use ssh package to connect server with ed25519
What did you expect to see?
I expect to connect the sftp server to download a zip file
What did you see instead?
It said key mismatch with ed25519, Use ssh-keyscan -t ecdsa ip >> .ssh\known_hosts to replace ed25519 key works fine .
keys in known_hosts
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAfkr/guXHGCyNtyGS/0bwD9eWgS4K6avfsU47gcI6wS
ed25519 parse result: [7 228 175 248 46 92 113 130 200 219 114 25 47 244 111 0 253 121 104 18 224 174 154 189 251 20 227 184 28 35 172 18]
The text was updated successfully, but these errors were encountered: