aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar alecdwm 2016-04-08 13:04:03 +0200
committerGravatar alecdwm 2016-04-08 13:04:03 +0200
commita29b58e654c15faa4de4ae1195c0e6b8b3102395 (patch)
tree8210e11dd5e0e4b566849e97314355dc926e6d4e
parent455cc2ba69a58051dba105d5d1820e567d3bc850 (diff)
log all client commands
-rw-r--r--rsham.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rsham.go b/rsham.go
index 7a6d338..1ebd42c 100644
--- a/rsham.go
+++ b/rsham.go
@@ -138,6 +138,7 @@ func sshHandleConnection(nConn net.Conn, config *ssh.ServerConfig) {
if err != nil {
break read_loop
}
+ sshLog.Info("Client sent command", "command", line)
switch line {
case "exit":
term.Write([]byte("Goodbye.\r\n"))
@@ -152,7 +153,6 @@ func sshHandleConnection(nConn net.Conn, config *ssh.ServerConfig) {
}
default:
- sshLog.Info("Client sent command", "command", line)
term.Write([]byte(" " + line + "\r\n"))
}
}