Compare commits
1 Commits
7f96d42ce5
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5f6a81eb54 |
@@ -223,7 +223,7 @@ func main() {
|
|||||||
UserKeyFallback: func(conn ssh.ConnMetadata, pubKey ssh.PublicKey) (*ssh.Permissions, error) {
|
UserKeyFallback: func(conn ssh.ConnMetadata, pubKey ssh.PublicKey) (*ssh.Permissions, error) {
|
||||||
if authorizedKeys[string(pubKey.Marshal())] {
|
if authorizedKeys[string(pubKey.Marshal())] {
|
||||||
log.Printf("user %q successfully authorized from remote addr %s", conn.User(), conn.RemoteAddr())
|
log.Printf("user %q successfully authorized from remote addr %s", conn.User(), conn.RemoteAddr())
|
||||||
return &ssh.Permissions{map[string]string{}, map[string]string{}}, nil
|
return &ssh.Permissions{map[string]string{}, map[string]string{}, map[any]any{}}, nil
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("public key not found in %s", *authorizedKeysPath)
|
return nil, fmt.Errorf("public key not found in %s", *authorizedKeysPath)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user