Created
June 10, 2022 17:45
-
-
Save benmoss/acc12b7afddb1d7d2aabef3dcebeb49d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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