News for hackers. Stuff that matters.
Re:How to Secure a Linux Server by dev_dull on Saturday February 16, 2019 @11:31AM (#19179348)
> 2FA for ssh

Correct me if I'm wrong, but isn't this what password-protected private key encryption is?

Re:How to Secure a Linux Server by blamarvt on Saturday February 16, 2019 @01:57PM (#19180276)
What I feel like all the responses missed is that while you're right in that a password-protected private key provides a second factor... what is typically meant by 2FA is two factors checked by the server. The server has no way to know you're using a password-protected key so it shouldn't really be regarded as a factor.
Re:How to Secure a Linux Server by ohithereyou on Saturday February 16, 2019 @12:47PM (#19179800)
You are incorrect. The only factor used there is the key. The password simply decrypts the key to perform the requested authentication.

2FA would be private key (password-protected) and a separate (most likely one time use) password. Something you have (key that you decrypted) and something you know (the one-time password).

Re:How to Secure a Linux Server by wiredfool on Saturday February 16, 2019 @12:12PM (#19179584)
No.

Keys are easily (and persistently) added to ssh-agent, at which point it is easy to forward and will generally silently authorize without any further user interaction. That reduces it to a single factor.

Compare that to a totp challenge or a yubi key plus a password. Having one of them won’t get you the other.

Re:How to Secure a Linux Server by rkeene2 on Saturday February 16, 2019 @02:11PM (#19180372)
If the private key cannot be read by anyone and the user must authenticate to get the device to sign the authentication request, then it could be considered 2 factor by some interpretations.
Re:How to Secure a Linux Server by LIV2 on Saturday February 16, 2019 @12:16PM (#19179614)
The problem with that is that your users can always generate a key without a passphrase at all and you have no way of knowing
Re:How to Secure a Linux Server by mgbmtl on Saturday February 16, 2019 @12:12PM (#19179585)
The author probably meant "two-step" (out of band verification) rather than two-factor.
Re:How to Secure a Linux Server by imthenachoman on Monday February 18, 2019 @06:11PM (#19195334)
A pass phrase on a certificate is two step. Password + TOTP is two factor.