Simple Two-Factor SSH Authentication
moocode.com
Simple Two-Factor SSH Authentication
1–10 of 47 posts
Re: Simple Two-Factor SSH Authentication
#2Re: Simple Two-Factor SSH Authentication
#3If you're running a recent version of OpenSSH, you can add the 'ForceCommand' param to sshd_config to add it for all users. The only downside to this is it is for all users , so if you run something that needs to use key based login without the two factor method you'll need to validate that yourself within the script.
Re: Simple Two-Factor SSH Authentication
#4Re: Simple Two-Factor SSH Authentication
#5Beware that this may break apps that use SSH as a transport protocol (like rsync and mercurial, depending on your setup of course).
Re: Simple Two-Factor SSH Authentication
#6If you're running a recent version of OpenSSH, you can add the 'ForceCommand' param to sshd_config to add it for all users. The only downside to this is it is for all users , so if you run something that needs to use key based login without the two factor method you'll need to validate that yourself within the script.
Re: Simple Two-Factor SSH Authentication
#7Re: Simple Two-Factor SSH Authentication
#8I got a certificate warning when opening the page.
Re: Simple Two-Factor SSH Authentication
#9If you're running a recent version of OpenSSH, you can add the 'ForceCommand' param to sshd_config to add it for all users. The only downside to this is it is for all users , so if you run something that needs to use key based login without the two factor method you'll need to validate that yourself within the script.
Look up the Match command, you can limit ForceCommand and many others to a specific "User, Group, Host and Address."