Using a third-party service like authy.com has its advantages, but if you prefer, you can get two-factor authentication in the latest Ubuntu without involving a third party by installing libpam-google-authenticator from Ubuntu's "universe" repository. Here's how you do it: first, sudo apt-get install libpam-google-authenticator ; second, run google-authenticator as the user you will access remotely and follow the ins…
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).
Add two-factor authentication to your ssh in 30 seconds
71–80 of 108 posts
Re: Add two-factor authentication to your ssh in 30 seconds
#72Earlier quoted context omitted.
What happens if you lose your normal password? Why you boot up into single user mode using the console like the old days of when you forgot the root password.
And how do you do that with cloud instances? :)
Re: Add two-factor authentication to your ssh in 30 seconds
#73In the video I see a private key coming from a Dropbox folder :( Missing. The. Point.
Re: Add two-factor authentication to your ssh in 30 seconds
#74In the video I see a private key coming from a Dropbox folder :( Missing. The. Point.
I didn't watch the video, but if the key is encrypted (password protected) like it should be, what's the problem?
I know that's reasonably secure but it feels terrible.
Re: Add two-factor authentication to your ssh in 30 seconds
#75Earlier quoted context omitted.
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).
Most probably, they didn't know about PAM.
Re: Add two-factor authentication to your ssh in 30 seconds
#76Using a third-party service like authy.com has its advantages, but if you prefer, you can get two-factor authentication in the latest Ubuntu without involving a third party by installing libpam-google-authenticator from Ubuntu's "universe" repository. Here's how you do it: first, sudo apt-get install libpam-google-authenticator ; second, run google-authenticator as the user you will access remotely and follow the ins…
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).
Re: Add two-factor authentication to your ssh in 30 seconds
#77Re: Add two-factor authentication to your ssh in 30 seconds
#78Earlier quoted context omitted.
danielpal: google-authenticator prints out emergency scratch codes you can use if you lose your cellphone :-)
Yeah but in reality no-one writes it down. I actually use Google-Auth for my Gmail, but I forgot were I wrote this number down(it was a couple of years ago). Keeping a scratch code for each new server is a pain.
I've written down mine on three different pieces of paper (in my wallet, my bag and my closet), and also took a screenshot from it and `gpg`-ed it (with a passphrase, so no one can open it unless they know the password) and stored it in a few online repositories, as well as a friend's mailbox.
So, I'll never be locked out from my account.
Re: Add two-factor authentication to your ssh in 30 seconds
#79In the video I see a private key coming from a Dropbox folder :( Missing. The. Point.
I didn't watch the video, but if the key is encrypted (password protected) like it should be, what's the problem?
Re: Add two-factor authentication to your ssh in 30 seconds
#80Seriously? Another (virtual) token-based 2FA solution? What is your competitive advantage against Duo, Authentify, Entrust, and the thousand other SMS or virtual token 2FA solutions out there?