Skip to content

Project to build secured and hardened Bastion implemented as Docker Container running Alpine Linux with Google Authenticator support

License

Notifications You must be signed in to change notification settings

OlegGorj/bastion-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codacy Badge Build Status Docker Pulls GitHub Issues Average time to resolve an issue Percentage of issues still open

Hardened Bastion with MFA on Docker

Project to build secured and hardened Bastion Docker image


Usage

Environment setup

Google Authenticator is a free & open source MFA solution - to enable it as MFA provider:

export MFA_PROVIDER=google-authenticator

Quick start

Here's how you can quickly run the bastion. Assuming you have ~/.ssh/authorized_keys properly configured and your SSH key (e.g. ~/.ssh/id_rsa) added to your SSH agent.

$ docker run -it -p 1234:22 \
     -e MFA_PROVIDER=google-authenticator \
     -v ~/.ssh/authorized_keys:/root/.ssh/authorized_keys
     OlegGorJ/bastion-image:latest

In another terminal you should be able to run:

$ ssh root@localhost -p 1234

The first time you connect, you'll be asked to setup your MFA device, then, each next time you connect, you'll be prompted to enter your MFA token.


About

Project to build secured and hardened Bastion implemented as Docker Container running Alpine Linux with Google Authenticator support

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published