Skip to content

Instantly share code, notes, and snippets.

@benmoss
Created June 10, 2022 17:45
Show Gist options
  • Save benmoss/acc12b7afddb1d7d2aabef3dcebeb49d to your computer and use it in GitHub Desktop.
Save benmoss/acc12b7afddb1d7d2aabef3dcebeb49d to your computer and use it in GitHub Desktop.
diff --git a/ssh/keys.go b/ssh/keys.go
index 1c7de1a..f9a4ae3 100644
--- a/ssh/keys.go
+++ b/ssh/keys.go
@@ -63,7 +63,7 @@ const (
// Use ParsePublicKey for keys with prepended algorithm.
func parsePubKey(in []byte, algo string) (pubKey PublicKey, rest []byte, err error) {
switch algo {
- case KeyAlgoRSA:
+ case KeyAlgoRSA, KeyAlgoRSASHA256, KeyAlgoRSASHA512:
return parseRSA(in)
case KeyAlgoDSA:
return parseDSA(in)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment