summaryrefslogtreecommitdiff
path: root/internal/ssh
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2021-11-06 12:33:19 +0200
committerPaul Buetow <paul@buetow.org>2021-11-06 12:33:19 +0200
commitc8c42aa26861e28e6f22458fffd8db6d9b712d70 (patch)
treeb70a61237969e212c40e18f9b46f8332c11e0c2c /internal/ssh
parent3d02a4a917dbdd85c40dbdb0fcac65c82fb7fe5b (diff)
Remove insecure and dangerous relaxed auth mode
Diffstat (limited to 'internal/ssh')
-rw-r--r--internal/ssh/server/publickeycallback.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/internal/ssh/server/publickeycallback.go b/internal/ssh/server/publickeycallback.go
index c661419..f7655b4 100644
--- a/internal/ssh/server/publickeycallback.go
+++ b/internal/ssh/server/publickeycallback.go
@@ -22,12 +22,7 @@ func PublicKeyCallback(c gossh.ConnMetadata,
if err != nil {
return nil, err
}
-
dlog.Server.Info(user, "Incoming authorization")
- if config.ServerRelaxedAuthEnable {
- dlog.Server.Fatal(user, "Granting permissions via relaxed-auth")
- return nil, nil
- }
authorizedKeysFile, err := authorizedKeysFile(user)
if err != nil {