forked from tangled.org/core
this repo has no description

guard: add friendly message on `ssh -T` (close #128)

Signed-off-by: Seongmin Lee <boltlessengineer@proton.me>

Changed files
+2 -2
guard
+2 -2
guard/guard.go
···
"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)
}