remove ssh-rsa warning
bradfitz confirmed ssh-rsa keys work again. fixes https://github.com/gokrazy/breakglass/issues/11
This commit is contained in:
parent
eacd5a447e
commit
44b3fe64f1
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user