Developed by Kyriakos Giannakis ([email protected]).
git clone ...
- Install the requirements:
$ sudo pip install -r requirements.txt
- Run the install script as root:
$ sudo ./setup.sh
- Restart the SSH service:
$ sudo service ssh restart
- Now each user needs to enable 2FA on his own account, by issuing:
$ sshtotp --enable
. When the command is run, a base32 Secret Key will be generated and saved in HOME/.totpKey. This needs to be copied onto a 2FA mobile app such as Google Authenticator or FreeOTP. Keep this key secret.
Whenever a user tries to log in, a prompt to enter a One Time Password will appear.
Note: The time on both the server and the mobile device needs to be in sync. We recommend using NTP for syncing the time.
PyOTP. Copyright (C) 2011-2016 Mark Percival [email protected], Nathan Reynolds [email protected], and PyOTP contributors.