aboutsummaryrefslogtreecommitdiff
path: root/ssh_server.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ssh_server.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/ssh_server.go b/ssh_server.go
index e841e65..8cea1a9 100644
--- a/ssh_server.go
+++ b/ssh_server.go
@@ -5,6 +5,7 @@ import (
"net"
"os"
"os/exec"
+ "strings"
glider_ssh "github.com/gliderlabs/ssh"
"go.lindenii.runxiyu.org/lindenii-common/clog"
@@ -39,7 +40,8 @@ func serve_ssh(listener net.Listener) error {
if client_public_key != nil {
client_public_key_string = string(go_ssh.MarshalAuthorizedKey(client_public_key))
}
- _ = client_public_key_string
+
+ clog.Debug("Incoming SSH: " + session.RemoteAddr().String() + " " + strings.TrimSuffix(client_public_key_string, "\n") + " " + session.RawCommand())
cmd := session.Command()