Print client name upon connection
This commit is contained in:
parent
8cdccd48e4
commit
84cc2e9221
1 changed files with 1 additions and 1 deletions
2
sshd.go
2
sshd.go
|
@ -134,7 +134,7 @@ func main() {
|
|||
allowedRemotePorts := sshConn.Permissions.CriticalOptions["remoteports"]
|
||||
|
||||
if *verbose {
|
||||
log.Printf("Connection from %s, %s (%s). Allowed local ports: %s remote ports: %s", client.Name, sshConn.RemoteAddr(), sshConn.ClientVersion(), allowedLocalPorts, allowedRemotePorts)
|
||||
log.Printf("Connection from \"%s\", %s (%s). Allowed local ports: %s remote ports: %s", client.Name, sshConn.RemoteAddr(), sshConn.ClientVersion(), allowedLocalPorts, allowedRemotePorts)
|
||||
}
|
||||
|
||||
// Parsing a second time should not error, so we can ignore the error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue