More appropriate error message
This commit is contained in:
parent
ba57c0a21e
commit
1744d4281a
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
|
@ -348,7 +348,7 @@ func buildCfg() *ssh.ServerConfig {
|
||||||
pubKey, comment, _, rest, err := ssh.ParseAuthorizedKey(authorizedKeysBytes)
|
pubKey, comment, _, rest, err := ssh.ParseAuthorizedKey(authorizedKeysBytes)
|
||||||
fmt.Println(comment)
|
fmt.Println(comment)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal("keypoop", err)
|
log.Fatal("authorized_keys error", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
authorizedKeysMap[string(pubKey.Marshal())] = comment
|
authorizedKeysMap[string(pubKey.Marshal())] = comment
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue