From 44b3fe64f19c5381cb7c654c45352a171b84a0ca Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 29 May 2024 19:59:05 +0200 Subject: [PATCH] remove ssh-rsa warning bradfitz confirmed ssh-rsa keys work again. fixes https://github.com/gokrazy/breakglass/issues/11 --- breakglass.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/breakglass.go b/breakglass.go index 04f3fdf..5d8142e 100644 --- a/breakglass.go +++ b/breakglass.go @@ -60,15 +60,7 @@ func loadAuthorizedKeys(path string) (map[string]bool, error) { if tr := strings.TrimSpace(s.Text()); tr == "" || strings.HasPrefix(tr, "#") { continue } - pubKey, comment, _, _, err := ssh.ParseAuthorizedKey(s.Bytes()) - - // This warning can be removed once the mentioned issue is resolved - if keyType := pubKey.Type(); keyType == "ssh-rsa" { - log.Print("Warning: You added a ssh-rsa key to your authorized keys, these do currently not work.") - log.Print("Further information: https://github.com/gokrazy/breakglass/issues/11") - log.Printf("Affected key: %s [...] %s (line %d)", keyType, comment, lineNum) - } - + pubKey, _, _, _, err := ssh.ParseAuthorizedKey(s.Bytes()) if err != nil { return nil, err }