Re:Add two-factor authentication to your ssh in 30 seconds
by jlgreco on Tuesday August 28, 2012 @03:27PM
(#4445441)
Interestingly it appears this Authy method does not use PAM. I wonder if there is a reason for that, since a PAM module would be a good deal more flexible (this sort of thing is what PAM is for after all).
[ Parent
| on HN ]
Re:Add two-factor authentication to your ssh in 30 seconds
by danielpal on Tuesday August 28, 2012 @08:53PM
(#4446592)
The basic reason is because we don't use passwords.
We always use public/private certificates on all of our machines.
With PAM you have to use passwords. We'll release a version soon that works with PAM, but I recommend you switch to using authorized_keys with certificates. Not only is it much more secure, it's also much nicer to use.
Re:Add two-factor authentication to your ssh in 30 seconds
by jlgreco on Tuesday August 28, 2012 @10:53PM
(#4446871)
I do use authorized_keys, though PAM is good for a lot more than just sshd; that's why I say it is more flexible. For example, I could see two factor authentication being used to log into shared workstations through XDM/GDM. This would eliminate the possibility that your users are sharing passwords for their accounts.
Also, the way I would intend on using this is such that if your public key is in authorized_keys, you log in like normal. If not, you authenticate with PAM using both your unix password (or ldap or whatever you have configured) and your 2nd authentication system. I log into one or two of my servers from strange computers often enough that disabling password authentication entirely on those servers is limiting.
Re:Add two-factor authentication to your ssh in 30 seconds
by danielpal on Wednesday August 29, 2012 @09:13AM
(#4448320)
Yeah we'll release a PAM module soon so you can do this. If you don't want to wait, you could write one. Just look at this module, it's fairly simple. The API is really straight forward.
Re:Add two-factor authentication to your ssh in 30 seconds
by Ralith on Tuesday August 28, 2012 @06:10PM
(#4446138)
Most probably, they didn't know about PAM.
Re:Add two-factor authentication to your ssh in 30 seconds
by danielpal on Tuesday August 28, 2012 @08:48PM
(#4446579)
Not at all. We understand PAM and we plan to release a version that works with PAM. But we don't like passwords, we much rather use public/private ssh keys instead of users with passwords. It's not only much better user experience but is also much more secure.