4 ms·
I'd be interested to hear how people on HN currently secure their SSH sessions with two-factor authentication.
by amelius 10y ago
I'd be interested to hear how people on HN currently secure their SSH sessions with two-factor authentication.
- typicalrunt 10y agoDuo: https://duo.com https://duo.com Super easy to setup and use. About $1/user/month, so fairly cheap.
- amelius 10y agoDoes it allow to do "nested" logins? E.g., first login from machine A to machine B, then login from machine B to machine C, while the security token is on machine A?
- brycehamrick 10y agoI use Authy for this. If it's all you use Authy for you can easily get away with just using their free tier. https://github.com/authy/authy-ssh https://github.com/authy/authy-ssh
- vageli 10y agoGoogle 2fa is easy to set up as a PAM module.
- h4waii 10y agoPAM + OTP. See the Arch Wiki [0], though it's applicable on almost every single distribution. You can use keys for known devices, and use passphrase and OTP for unknown devices if you need to SSH in a bind. 0. https://wiki.archlinux.org/index.php/Google_Authenticator https://wiki.archlinux.org/index.php/Google_Authenticator