From 5b4154342eead2cf0df987ee4a547b7ff583d0a5 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Wed, 20 Apr 2022 19:52:38 -0700 Subject: [PATCH] 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 --- ssh/tailssh/tailssh.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh/tailssh/tailssh.go b/ssh/tailssh/tailssh.go index 96e9f386d..468359a68 100644 --- a/ssh/tailssh/tailssh.go +++ b/ssh/tailssh/tailssh.go @@ -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{},