1.9.4 (but it doesn't matter, this isn't in the stdlib yet)
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (go env)?
What did you do?
I'm trying to get more info from SSH servers, and the API of x/crypto/ssh is not very friendly.
I can only list acceptable crypto algorithms, not find out which the remote end support. One reason for wanting this is that I want to check all host keys, but the HostKeyCallback is only called for the negotiated one. The error message includes all algorithms remote end supports, but it's not programmatically extractable.
No good way to reject host key and know that's why Dial failed.