https://github.com/atesgoral/docker-ssh-totp
Docker image for experimenting with SSH via TOTP
https://github.com/atesgoral/docker-ssh-totp
docker google-authenticator mfa ssh totp
Last synced: about 1 month ago
JSON representation
Docker image for experimenting with SSH via TOTP
- Host: GitHub
- URL: https://github.com/atesgoral/docker-ssh-totp
- Owner: atesgoral
- Created: 2017-02-17T18:27:05.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-22T21:27:52.000Z (about 8 years ago)
- Last Synced: 2025-01-21T20:48:34.784Z (3 months ago)
- Topics: docker, google-authenticator, mfa, ssh, totp
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Docker image for experimenting with SSH via TOTP.
* Ubuntu 16.10 (Yakkety Yak) - to use latest libpam-google-authenticator
* ntp - to synch time
* augeas-tools - for configuring stuff```
docker build .
docker run -it
```Once on the container, grab the generated secret key or just scan the QR code into your token generator app:
```
█▀▀▀▀▀█ ▄▀▄ ▄▀▀█ █▀█ █▀ ▄▀█ ▀ █▀▀▀▀▀█
█ ███ █ █ ▄ ▄ ▄▄ ▄ ▀▄▄ ▀▄▀▀▀▀▀ █ ███ █
█ ▀▀▀ █ █▀ ▄▀▀▄▀ ▄ ██▄▀█ ▀███▀▀█ █ ▀▀▀ █
▀▀▀▀▀▀▀ █ █▄▀▄█▄▀ ▀ ▀▄▀▄▀ ▀▄█ ▀ █ ▀▀▀▀▀▀▀
▀ █▀▀█▀▄ ▀▄█▄ █ ▀▀▀█▄█▀▄ ▀ █▀█▄ █▀███ ▄
█ ▀▀▀ ▀█▄█ ▄▄ ▀▀ ███▄ ██▄▀▀▄ ▄▄█▄█▀▀▄
▀▄ ▀▀█▀██ ▀ ▀ ▄ ▄██▀▄█▄█▄█ ▀▀▀▄▀▄▀▀
▀█ █ ▄▀█▄█▄█▄ ██▄ ▀█▄▄ ▄ ▄ ▄ █ ▀ ▄▄▄▀
▀ █ ▀███ ▀ ▄▄██▀█▄▄▄▄▀██ ▄▄▀ ▄█▄ ▀ ▄
▄▄▀▄▄▄▀▀▄ ▄▀█▀▀▀ █▄▄ █▄ █▀█▄ ▀▄█ ▀██ ▀▄
█ █▄ ▀▀ █ ▀▄▀▀ ▀ ▄ ██▄▄▄▄▀▀▀▄▀█▄▀▄▀▄ ▄▄
▄█ ▄█▀▄▄▀ ▀▄ ▄▄▀ ▄ █ ▄▀██▄▀ ▄▀█▄▀▄▄▀▄▄
▀▄▀█ ▀ ▀▄ ▄▄██ ██▀▄▄▄▄█▀▀█▀█▀ ▄▀ ▄█▄▀ ▄▀▀ ▄ ▀▀▀▀ ▄▀▄▀ █ ▀█▄ █▀▄ ▀▄▀█▀█ █▀▄ █▄
▄▀ ▀▄▄▀█▀ ▄▄ ▄█▀█ ▄ ▀▀▀▀▀ ▀▄▀█▄▀▄█ ▀▄▀▀▄
█ ▀▀▀▀▄▄██ █▀ ▀▄▀ ▀███▀▀▄█▀ ▀█▄▄ ▀▄▀▀ ▄
▀ ▀▀▀ ▀ ▄▄ ▀██▀▄▄▀▀▄▄ ▄█ ▀█▀▀▄▄▀█▀▀▀██▀ █
█▀▀▀▀▀█ ▄ █ ▀ ▀ ▀▄▀ ▀▄▄ ▄███▄▄█ ▀ █▄▀█▄
█ ███ █ █▀▄▀ ▀▀ ▀ ▀▄▀█▀ ▀ ▄▀█ ▄ █▀▀▀▀
█ ▀▀▀ █ ▀██ ▀▀▄▀▀▀█ ▀▄▄ ▀ ██ ▄▄█▀█▀█▀▀▄
▀▀▀▀▀▀▀ ▀ ▀▀ ▀▀▀ ▀ ▀ ▀▀▀▀ ▀ ▀ ▀ ▀▀▀Your new secret key is: E3EI65TA2YCJOEQFMG2ZO6XIE4
```Then, just try SSHing into the container itself:
```
ssh localhost
```