An SSH server Docker image created to demo Keyper, Keys and Certificate based authentication system. Demo for this image is running as mavrix2.dbsentry.com, mavrix3.dbsentry.com, mavrix4.dbsentry.com, and mavrix5.dbsentry.com/ All logins to this image via SSH are protected using highly restricted lshell. Logged in users are restricted to run very few shell commands, and more than three unauthorized commands kicks out the user.
Other then Keyper Demo, and learning about Docker tooling, this image does not have much use.
Follow the steps to build docker image using source code:
- Clone this git repository
$ git clone https://github.com/dbsentry/ssh-docker.git
- By default Makefile creates image as dbsentry/sshfp. To change, modify Makefile
- Change .release to reflect correct tag on docker image
- Run build
$ docker build -t sshd . -f Dockerfile
The generated image when run would start a docker container with all the services.
You can use either docker or podman to run this container.
$ docker run --hostname mavrix2 -p2022:22 -d -it localhost/sshd
$ podman run --hostname mavrix2 -p2022:22 -d -it localhost/sshd
All assets and code are under the GNU GPL LICENSE and in the public domain unless specified otherwise.
Some files were sourced from other open source projects and are under their terms and license.