File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -124,11 +124,11 @@ func sessionHandler(session ssh.Session) {
124
124
// Wait for the command to exit and log any errors we get
125
125
err = cmd .Wait ()
126
126
if err != nil {
127
- log .Error ("SSH: Wait: %v from %s" , err , session .RemoteAddr ())
127
+ log .Error ("SSH: Wait: %v Failed authentication attempt from %s" , err , session .RemoteAddr ())
128
128
}
129
129
130
130
if err := session .Exit (getExitStatusFromError (err )); err != nil {
131
- log .Error ("Session failed to exit. %s from %s" , err , session .RemoteAddr ())
131
+ log .Error ("Session failed to exit. %s Failed authentication attempt from %s" , err , session .RemoteAddr ())
132
132
}
133
133
}
134
134
@@ -185,7 +185,7 @@ func publicKeyHandler(ctx ssh.Context, key ssh.PublicKey) bool {
185
185
186
186
pkey , err := models .SearchPublicKeyByContent (strings .TrimSpace (string (gossh .MarshalAuthorizedKey (key ))))
187
187
if err != nil {
188
- log .Error ("SearchPublicKeyByContent: %v from %s" , err , ctx .RemoteAddr ())
188
+ log .Error ("SearchPublicKeyByContent: %v Failed authentication attempt from %s" , err , ctx .RemoteAddr ())
189
189
return false
190
190
}
191
191
You can’t perform that action at this time.
0 commit comments