Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log (un)successful attempts to connect #71

Closed
dargor opened this issue May 24, 2016 · 1 comment
Closed

Log (un)successful attempts to connect #71

dargor opened this issue May 24, 2016 · 1 comment
Assignees
Milestone

Comments

@dargor
Copy link

dargor commented May 24, 2016

Similar to ssh, for fail2ban. Something like this will do :

May 24 10:52:45 dargor sshd[${pid}]: Disconnecting: Too many authentication failures for invalid user ${login} from ${ip} port ${port} ssh2 [preauth]
May 24 11:05:56 dargor sshd[${pid}]: Received disconnect from ${ip}: 11: Bye Bye [preauth]
May 24 11:21:28 dargor sshd[${pid}]: Connection closed by ${ip} [preauth]
May 24 12:13:06 dargor sshd[${pid}]: Accepted publickey for ${login} from ${ip} port ${port} ssh2: RSA ${fingerprint}
May 24 12:13:06 dargor sshd[${pid}]: Received disconnect from ${ip}: 11: disconnected by user

Either with syslog or a file to /var/log.

@moul moul self-assigned this May 24, 2016
moul added a commit that referenced this issue May 26, 2016
moul added a commit that referenced this issue May 26, 2016
moul added a commit that referenced this issue May 26, 2016
@moul
Copy link
Owner

moul commented Jul 15, 2016

Fixed

@moul moul closed this as completed Jul 15, 2016
@moul moul modified the milestone: v1.3.0 Jul 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants