--- a/ssh/server.go Tue Sep 17 21:00:45 2019 -0500
+++ b/ssh/server.go Tue Sep 17 21:38:36 2019 -0500
@@ -47,18 +47,28 @@
tcpConn, err := s.listener.Accept()
- log.Errorf("failed to accept ssh connection: %v", err)
+ "failed to accept ssh connection for %s: %v", sshConn, chans, reqs, err := ssh.NewServerConn(tcpConn, s.cfg)
- log.Errorf("ssh handshake failed: %v", err)
+ "ssh handshake failed for %q from %s(%s) : %v", + sshConn.Permissions.Extensions["username"], + sshConn.ClientVersion(), - "new ssh connection for %s from %s(%s)",
+ "new ssh connection for %q from %s(%s)", sshConn.Permissions.Extensions["username"],
@@ -143,16 +153,22 @@
- "%s@%s command %q succeed",
- serverConn.RemoteAddr(),
+ "%s@%s command %q succeed", + serverConn.RemoteAddr(),