From 3f2ac1e02defede8a795bfc7d487bbae87041099 Mon Sep 17 00:00:00 2001 From: Brian Joerger Date: Thu, 21 Nov 2024 02:03:25 -0800 Subject: [PATCH] Fix scp relogin. (#49304) --- tool/tsh/common/tsh.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tool/tsh/common/tsh.go b/tool/tsh/common/tsh.go index f2d61ef9b175f..8c51c89641eda 100644 --- a/tool/tsh/common/tsh.go +++ b/tool/tsh/common/tsh.go @@ -1027,6 +1027,7 @@ func Run(ctx context.Context, args []string, opts ...CliOption) error { scp.Flag("preserve", "Preserves access and modification times from the original file").Short('p').BoolVar(&cf.PreserveAttrs) scp.Flag("quiet", "Quiet mode").Short('q').BoolVar(&cf.Quiet) scp.Flag("no-resume", "Disable SSH connection resumption").Envar(noResumeEnvVar).BoolVar(&cf.DisableSSHResumption) + scp.Flag("relogin", "Permit performing an authentication attempt on a failed command").Default("true").BoolVar(&cf.Relogin) // ls ls := app.Command("ls", "List remote SSH nodes.") ls.Flag("cluster", clusterHelp).Short('c').StringVar(&cf.SiteName)