Pretty cool. Google authenticator is another alternative that be used via a pam module, with the additional benefit that it doesn't need to connect to something else for verification. https://code.google.com/p/google-authenticator/
the problem is that google authenticator stores the seed in the phone(and the server) so if you lose it basically you lose the server too, right?
Add two-factor authentication to your ssh in 30 seconds
11–20 of 108 posts
Re: Add two-factor authentication to your ssh in 30 seconds
#12While this one isn't quite as offensive as some, all these curl/sudo/bash combos really make me sad, particularly when used to "increase" security.
Re: Add two-factor authentication to your ssh in 30 seconds
#13Pretty cool. Google authenticator is another alternative that be used via a pam module, with the additional benefit that it doesn't need to connect to something else for verification. https://code.google.com/p/google-authenticator/
Seconding the recommendation for PAM/Google Authenticator. Off-topic: Has anyone ever managed to get PAM/Google Authenticator working with RADIUS? I spent a while messing about with this last year, and never got it working exactly as I had hoped. I'm no longer working with RADIUS, but this post reminded me I never finished scratching that geeky itch.
Re: Add two-factor authentication to your ssh in 30 seconds
#14Re: Add two-factor authentication to your ssh in 30 seconds
#15Re: Add two-factor authentication to your ssh in 30 seconds
#16Earlier quoted context omitted.
the problem is that google authenticator stores the seed in the phone(and the server) so if you lose it basically you lose the server too, right?
It's two-factor authentication: something you have (phone) and something you know (password to your ssh cert). So, you have to lose both in order to lose the server.
Re: Add two-factor authentication to your ssh in 30 seconds
#17This is great but one thing bugs me. When you add a new user, you have to restart SSH? Wouldn't that prevent people from connecting every time a new user is added?
Re: Add two-factor authentication to your ssh in 30 seconds
#18Also, it occurs to me: With TFA, it finally makes sense to periodically change passwords.
Re: Add two-factor authentication to your ssh in 30 seconds
#19You should really package this up, and provide a signed repo instead of relying on the busted SSL infrastructure and GitHub to provide security to your users. While this one isn't quite as offensive as some, all these curl/sudo/bash combos really make me sad, particularly when used to "increase" security.
Re: Add two-factor authentication to your ssh in 30 seconds
#20I've been using them across a half dozen personal machines for quite a while now, looking to roll it out at work as well.