diff options
author | Nick Thomas <nick@gitlab.com> | 2021-07-27 15:41:54 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2021-07-27 15:41:54 +0000 |
commit | b7edd7dd9f957c6b14d3bfa4407aca9ddfbe4f52 (patch) | |
tree | 034e4ae73aa5522a73db0506e67f567648bc507f /cmd/gitlab-sshd/main.go | |
parent | f9e7ffda68192d24ff26f0d5ff7fe70e376c32f2 (diff) | |
parent | f6baecaa794ef85b144fa9cd05940e3f020b4a0e (diff) | |
download | gitlab-shell-b7edd7dd9f957c6b14d3bfa4407aca9ddfbe4f52.tar.gz |
Merge branch 'id-ctx-for-auth-check' into 'main'
Log same correlation_id on auth keys check of ssh connections
See merge request gitlab-org/gitlab-shell!501
Diffstat (limited to 'cmd/gitlab-sshd/main.go')
-rw-r--r-- | cmd/gitlab-sshd/main.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cmd/gitlab-sshd/main.go b/cmd/gitlab-sshd/main.go index d1cc84e..78690b0 100644 --- a/cmd/gitlab-sshd/main.go +++ b/cmd/gitlab-sshd/main.go @@ -68,7 +68,10 @@ func main() { ctx, finished := command.Setup("gitlab-sshd", cfg) defer finished() - server := sshd.Server{Config: cfg} + server, err := sshd.NewServer(cfg) + if err != nil { + log.WithError(err).Fatal("Failed to start GitLab built-in sshd") + } // Startup monitoring endpoint. if cfg.Server.WebListen != "" { @@ -104,6 +107,6 @@ func main() { }() if err := server.ListenAndServe(ctx); err != nil { - log.WithError(err).Fatal("Failed to start GitLab built-in sshd") + log.WithError(err).Fatal("GitLab built-in sshd failed to listen for new connections") } } |