ssh/tailssh: fix double SSH-2.0- prefix in greeting banner

gliderlabs/ssh was already adding the "SSH-2.0-" prefix.

Updates #3802

Change-Id: I19a1cd9308371a2898e7883cf26e94c9b54bab29
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
pull/4480/head
Brad Fitzpatrick 3 years ago committed by Maisem Ali
parent 7a097ccc83
commit 5b4154342e

@ -221,7 +221,7 @@ func (c *conn) ServerConfig(ctx ssh.Context) *gossh.ServerConfig {
func (srv *server) newConn() (*conn, error) {
c := &conn{srv: srv, now: srv.now()}
c.Server = &ssh.Server{
Version: "SSH-2.0-Tailscale",
Version: "Tailscale",
Handler: c.handleConnPostSSHAuth,
RequestHandlers: map[string]ssh.RequestHandler{},
SubsystemHandlers: map[string]ssh.SubsystemHandler{},

Loading…
Cancel
Save