[OpenSSH 8.8](https://www.openssh.com/txt/release-8.8) deprecated using ssh-rsa. [golang/crypto/ssh](https://github.com/golang/go/issues/56342) does not play nice with OpenSSH 8.8. Using https://github.com/tobischo/gocrypto/commit/a878079a19cdba9b9da3ce57de2c4c9cb43b7ea3 it works. ``` go mod edit -replace golang.org/x/crypto=github.com/tobischo/gocrypto@a878079a19cdba9b9da3ce57de2c4c9cb43b7ea3 go mod tidy CGO_ENABLED=0 go build . ```
OpenSSH 8.8 deprecated using ssh-rsa.
golang/crypto/ssh does not play nice with OpenSSH 8.8.
Using https://github.com/tobischo/gocrypto/commit/a878079a19cdba9b9da3ce57de2c4c9cb43b7ea3 it works.