From 813d398ea409a9ba8da57ba6844dc9c5db13bb03 Mon Sep 17 00:00:00 2001 From: Erik Brakkee Date: Mon, 12 Aug 2024 16:18:27 +0200 Subject: [PATCH] message now indicates what to do when using ssh and when using sftp --- pkg/agent/session/session.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/agent/session/session.go b/pkg/agent/session/session.go index c07410c..235f80c 100644 --- a/pkg/agent/session/session.go +++ b/pkg/agent/session/session.go @@ -357,7 +357,7 @@ func check() { state.expiryIsNear = expiryTime.Sub(now) < state.advanceWarningDuration if state.expiryIsNear { messageUsers( - fmt.Sprintf("Session will expire at %s, press any key to extend it.", expiryTime.Format(time.DateTime))) + fmt.Sprintf("Session will expire at %s, press any key to (ssh) or execute a command (sftp) to extend it.", expiryTime.Format(time.DateTime))) //for _, session := range state.clients { // printHelpMessage(session.sshSession) //}