Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SSH host key parsing: use ParseAuthorizedKey (#2125)
`ParsePublicKey` expects the public key in a different SSH wire protocol format while `ParseAuthorizedKey` expects what you see in an `id_rsa.pub` file (which gives an error - `short read` when trying to parse it with `ParsePublicKey`) References: - [ParsePublicKey](https://pkg.go.dev/golang.org/x/crypto/ssh#ParsePublicKey) - [ParseAuthorizedKey](https://pkg.go.dev/golang.org/x/crypto/ssh#ParseAuthorizedKey) - [x] Functionally tested
- Loading branch information