Re:Add two-factor authentication to your ssh in 30 seconds
by bithive123 on Tuesday August 28, 2012 @02:31PM
(#4445134)
I wrote a Sinatra app to act as a Google Authenticator backend for our FreeRADIUS instance as well as our web SSO. It also handles enrollment via generating QR codes:
http://it.isevil.org/blog/2011/11/13/authentication-service-...
Code: https://github.com/bithive/example-totp-vault
For FreeRADIUS we use rlm_perl to define our own authenticate() method; it just calls the web service to validate the codes.