droberson / ssh-honeypot

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

JSON log file error #25

Open droberson opened 2 years ago

droberson commented 2 years ago

Got this error when dropping permissions. Also does not show the reason for the error:

[Thu Mar 3 16:58:40 2022] FATAL: Unable to open JSON log file:

domingo13 commented 8 months ago

It's a filesystem permission issue.

I changed the docker-compose.yml volume definition to another location on the filesystem where I could give broader permissions and then it worked. Like this:

version: '2' services: ssh-honeypot: image: 'local/ssh-honeypot:latest' build: . ports:

  • '22:2022' volumes:
  • ${PWD}/ssh-honeypot-log:/home/honeycomb/log
  • rsa:/home/honeycomb/rsa networks: default: restart: unless-stopped

volumes: log: driver: local rsa: driver: local

networks: default: