summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Meyer <t4cc0re@gitlab.com>2022-05-21 03:43:44 +0000
committerIgor Drozdov <idrozdov@gitlab.com>2022-05-21 03:43:44 +0000
commit09dd5bcbf0cbf59911e55972d52f6dc59ace122d (patch)
tree6219688cc2825755a6d45ec00f5946857fb7c763
parent1f89ece0aebb72e92c4e82760120ad32db62e268 (diff)
downloadgitlab-shell-09dd5bcbf0cbf59911e55972d52f6dc59ace122d.tar.gz
Introduce a GitLab-SSHD server version during handshake
-rw-r--r--internal/sshd/server_config.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/sshd/server_config.go b/internal/sshd/server_config.go
index 14aa470..bb7886c 100644
--- a/internal/sshd/server_config.go
+++ b/internal/sshd/server_config.go
@@ -103,6 +103,7 @@ func (s *serverConfig) get(ctx context.Context) *ssh.ServerConfig {
},
}, nil
},
+ ServerVersion: "SSH-2.0-GitLab-SSHD",
}
if len(s.cfg.Server.MACs) > 0 {