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

implement auth log #69

Closed
mfilser opened this issue Jan 20, 2021 · 3 comments
Closed

implement auth log #69

mfilser opened this issue Jan 20, 2021 · 3 comments

Comments

@mfilser
Copy link

mfilser commented Jan 20, 2021

Hello,
first, thanks a lot for this very useful container, it work's very well.

I see on the standard-output that i have a lot of invalid login attempts. I want to secure it with fail2ban, and i need to read the file /var/log/auth.log, but it itsn't there.

Is there an option to enable / implement this?

Thank you in advance,
best regards,
Martin

@pragmatic
Copy link

Hi Martin,

Thank you for your kind words.

It's out of the scope of this project to implement a logging system, which would be required to expose the log file that fail2ban's logpath wants.

There's a couple of options you can investigate:

  1. Look in your hosts Docker container log/var/lib/docker/containers/<CONTAINERID>/<CONTAINERID>-json.log. This file contains JSON formatted output from the Docker daemon.
  2. Configure a Docker log driver to run your container with. The syslog or journald drivers may be of most use to you.

Hope that helps.

@BasixKOR
Copy link

BasixKOR commented Jan 6, 2022

Could we have a reconsideration? I'm experiencing an authentication issue and without the auth.log it is too much hassle to debug it.

@mfilser
Copy link
Author

mfilser commented Jan 7, 2022

@BasixKOR
If you like you could try to clone from my repository https://github.com/mfilser/docker-sshd which contains the PR #75, build the image and see if it work's for you too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants