droberson / ssh-honeypot

Fake sshd that logs ip addresses, usernames, and passwords.
MIT License
620 stars 240 forks source link

[feature] allow disabling the file log #8

Closed tedder closed 5 years ago

tedder commented 5 years ago

I think I can run ssh-honeypot on a readonly filesystem if it didn't need to log. As a workaround, I'm logging to /dev/null right now, but with the way log_entry() is written, writing to console or syslog is in addition to the logfile, which is unfortunate.

droberson commented 5 years ago

Added -L flag to toggle writing to a file; https://github.com/droberson/ssh-honeypot/commit/10a6caf7c087b64981d88226018366fe20dd0e1d