Skip to content

Commit

Permalink
remove ssh-rsa warning
Browse files Browse the repository at this point in the history
bradfitz confirmed ssh-rsa keys work again.

fixes #11
  • Loading branch information
stapelberg committed May 29, 2024
1 parent eacd5a4 commit 44b3fe6
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions breakglass.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 44b3fe6

Please sign in to comment.