From 291736e3a1fcaf641ca66000508aa0cb13cd6517 Mon Sep 17 00:00:00 2001 From: Seongmin Lee Date: Sat, 5 Jul 2025 01:46:24 +0900 Subject: [PATCH] guard: add friendly message on `ssh -T` (close #128) Change-Id: qpmlrkvpyprmnzwvnookzzwlvmnpxlzp Signed-off-by: Seongmin Lee --- guard/guard.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guard/guard.go b/guard/guard.go index 439bcc2..fedfcb3 100644 --- a/guard/guard.go +++ b/guard/guard.go @@ -86,8 +86,8 @@ func Run(ctx context.Context, cmd *cli.Command) error { "client", clientIP) if sshCommand == "" { - l.Error("access denied: no interactive shells", "user", incomingUser) - fmt.Fprintln(os.Stderr, "access denied: we don't serve interactive shells :)") + l.Info("access denied: no interactive shells", "user", incomingUser) + fmt.Fprintf(os.Stderr, "Hi @%s! You've successfully authenticated.\n", incomingUser) os.Exit(-1) } -- 2.43.0