droberson / ssh-honeypot

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

Add Docker support #13

Closed xZero707 closed 4 years ago

xZero707 commented 4 years ago

Docker is evolving more and more, and the number of people choosing this technology is steadily increasing.

I am not exempt; I wanted to use this project as a decoy running on port 22, as my real SSH port is something different. The problem popped up, almost immediately: My architecture is running containers exclusively, and this project doesn't have docker support.

A quick google search revealed this, but it's outdated and not optimized. So... I made my own, inspired by repo above; Here are my 5 cents.

S6 supervised Alpine based docker image. Image size is only ~22 MB.

There are some things left, like multi-arch support; Currently, only x86-64 is supported, but that is to be added on my base image, which I'm planning to do soon.


You should configure automated builds somewhere, preferably Docker hub, and update docker/README.MD and docker/docker-compose.yml with new image names. Or let me know and I'll update that.

Cheers

xZero707 commented 4 years ago

Ready to use image is available here: nlss/ssh-honeypot

docker run -d --name=ssh-honeypot --restart=unless-stopped  nlss/ssh-honeypot

I will remove it shall the repository owner decide to setup his own build.

droberson commented 4 years ago

Thank you! Sorry it took so long to review this.