From 3e06b9ea7a6ece79a0ee92c1a599991880c5ba32 Mon Sep 17 00:00:00 2001 From: Maisem Ali Date: Thu, 21 Jul 2022 11:37:34 -0700 Subject: [PATCH] ssh/tailssh: add "ssh" to conn logs Fixes #5089 Signed-off-by: Maisem Ali --- 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 3262ba0c5..7d9a130c8 100644 --- a/ssh/tailssh/tailssh.go +++ b/ssh/tailssh/tailssh.go @@ -290,7 +290,7 @@ func (srv *server) newConn() (*conn, error) { srv.mu.Unlock() c := &conn{srv: srv} now := srv.now() - c.connID = fmt.Sprintf("conn-%s-%02x", now.UTC().Format("20060102T150405"), randBytes(5)) + c.connID = fmt.Sprintf("ssh-conn-%s-%02x", now.UTC().Format("20060102T150405"), randBytes(5)) c.Server = &ssh.Server{ Version: "Tailscale", Handler: c.handleSessionPostSSHAuth,