More appropriate error message

This commit is contained in:
Olivier Tremblay 2018-10-17 21:24:43 -04:00
parent ba57c0a21e
commit 1744d4281a
No known key found for this signature in database
GPG key ID: D1C73ACB855E3A6D

View file

@ -348,7 +348,7 @@ func buildCfg() *ssh.ServerConfig {
pubKey, comment, _, rest, err := ssh.ParseAuthorizedKey(authorizedKeysBytes)
fmt.Println(comment)
if err != nil {
log.Fatal("keypoop", err)
log.Fatal("authorized_keys error", err)
}
authorizedKeysMap[string(pubKey.Marshal())] = comment