Skip to content

A docker container with sshd, fail2ban and google-authenticator.

License

Notifications You must be signed in to change notification settings

raymondhardy/docker-sshd-otp

 
 

Repository files navigation

SSH Host with Fail2ban, Google Authenticator

This docker container bundles up sshd, fail2ban and google-authenticator TOTP into a secure ssh gateway box. 'user' account is available.

Start command

docker run -v data/.google_authenticator:/.google_authenticator -v data/id_rsa.pub:/home/user/.ssh/authorized_keys -p 2222:22 skinnys/docker-sshd-otp

Docker Compose example

Docker compose will mount your .google_authenticator and id_rsa.pub from within the data dir

version: '2.0'
services:
  sshd:
    image: skinnys/docker-sshd-otp
    container_name: sshd
    volumes:
      -  data/.google_authenticator:/.google_authenticator
      -  data/id_rsa.pub:/home/user/.ssh/authorized_keys 
    ports:
      - "2222:22"

About

A docker container with sshd, fail2ban and google-authenticator.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 68.7%
  • Shell 31.3%