A simpler and more robust method is SSH Keys + Passwords. I should write a blog post on this...
Using two-factor authentication for SSH
11–20 of 50 posts
Re: Using two-factor authentication for SSH
#12The biggest problem with using google authenticator as a two factor mechanism is if you are managing many servers, is that each server needs to have its own setup. If they share keys, and one server gets compromised, they can generate keys for your other servers. As a result, you also cannot automated the process of deploying two factor on your servers. A simpler and more robust method is SSH Keys + Passwords. I shou…
please do!
Re: Using two-factor authentication for SSH
#13The biggest problem with using google authenticator as a two factor mechanism is if you are managing many servers, is that each server needs to have its own setup. If they share keys, and one server gets compromised, they can generate keys for your other servers. As a result, you also cannot automated the process of deploying two factor on your servers. A simpler and more robust method is SSH Keys + Passwords. I shou…
Re: Using two-factor authentication for SSH
#14Earlier quoted context omitted.
You can use Yubico OTP as you 2 Factor for SSH. As far as I know you can not use U2F as a 2 Factor over SSH because it needs support from OpenSSH (or whatever). A patch does exist, however, it is not yet upstream (any information on this welcome). However in the absence of U2F, you can still use Yubico OTP (HOTP) or you can use your yubikey together with your smartphone for TOTP. I think its a bad idea to use your sm…
You can use yubi's PAM modules in conjunction with SSH PAM auth, no need to patch OpenSSH. https://developers.yubico.com/yubico-pam/
Re: Using two-factor authentication for SSH
#15Re: Using two-factor authentication for SSH
#16In theory I could worry about Duo going down, but I also rely on other critical cloud services and do have other ways to access an instance in an emergency (and Duo supports fallbacks).
Simplicity can be deceiving. In this case I think leaving security to the pros is worth the tradeoff. I've previously relied on cloud services for secure user management and wasn't let down.
Re: Using two-factor authentication for SSH
#17Authy provides something similar, I wonder if one is better than the other. https://github.com/authy/authy-ssh
Re: Using two-factor authentication for SSH
#18Authy provides something similar, I wonder if one is better than the other. https://github.com/authy/authy-ssh
Re: Using two-factor authentication for SSH
#19Authy provides something similar, I wonder if one is better than the other. https://github.com/authy/authy-ssh
I don't really understand authy: does it not keep your 2FA tokens in "the cloud" behind a password? Therefore, does this not make them equivalent to a password, and negate the whole point of 2FA?
Still Zero-Knowledge, but no longer really 2FA.
I still us Authy for a lot of my keys because (1) I have that cloud function off and (2) the UI is better than GA IMHO.
Re: Using two-factor authentication for SSH
#20Authy provides something similar, I wonder if one is better than the other. https://github.com/authy/authy-ssh
I don't really understand authy: does it not keep your 2FA tokens in "the cloud" behind a password? Therefore, does this not make them equivalent to a password, and negate the whole point of 2FA?
Still Zero-Knowledge, but no longer really 2FA.
I still us Authy for a lot of my keys because (1) I have that cloud function off and (2) the UI is better than GA IMHO.