top | item 29156683

Mozilla Guidelines to Secure SSH

79 points| taf2 | 4 years ago |infosec.mozilla.org | reply

16 comments

order
[+] infosechandbook|4 years ago|reply
The guide is outdated if you rely on the latest version of OpenSSH. You must update such guides with every new version of OpenSSH.

Adding legacy configuration to your OpenSSH config files can even result in a false sense of security (e.g., if the server/client just skip the legacy part and you think it adds some protection).

Newer options to secure OpenSSH are also missing (e.g., using U2F for 2FA, introduced in OpenSSH 8.2 (Feb 2020).

[+] skoskie|4 years ago|reply
Are there any updated guides you’re aware of that you could share?
[+] cosentiyes|4 years ago|reply
What are some other high quality “harden your server” guides? Many seem to be out of date
[+] bravetraveler|4 years ago|reply
Compliance benchmarks like the other user suggests are probably best. eg: CIS

They're updated fairly regularly. However, take them with a grain of salt.

They'll worry about things like TCPWrappers, but that's how we did firewalls before they existed. Needless in the days of iptables, ebtables, nftables, etc.

Blogs tend to be recycled/dated recommendations with none/very little third party testing.

[+] igetspam|4 years ago|reply
CIS workbenches are updated regularly. You have to sign up for an account, which is free, to get access.
[+] markmaglana|4 years ago|reply
It doesn't address the Trust On First Use (TOFU) issue.
[+] zdw|4 years ago|reply
A SSH Certificate Authority signing host keys handles that, but requires additional setup.
[+] franga2000|4 years ago|reply
A quick and dirty way to do this is by syncing the known hosts file between all your clients. Make it writable by only the IT staff in charge of provisioning new systems and have them add the pubkeys during provisioning.
[+] csdvrx|4 years ago|reply
Add SSHP records to your DNS entries, and use DNSSEC or, if you can't, DoH (DNS over HTTPS)
[+] fnord123|4 years ago|reply
> Mozilla Guidelines to Secure [Secure Shell]
[+] franga2000|4 years ago|reply
Seems pretty reasonable, actually. Not as crazy as ATM Machine, since you can't have an ATM that isn't a machine, but you can have a Secure Shell that isn't secure.

Could also be a verb ("Guidelines [on how] to Secure Secure Shell") but even as an adjective it makes sense. "Guidelines to [a] Secure [setup of] Secure Shell" is a reasonable way to shorten that sentence, just like "Guide to [writing] Fast Java [code]" would be.

[+] shmoe|4 years ago|reply
Secure Secure Shell?
[+] soneil|4 years ago|reply
It works. Secure is being used as a verb and SSH is being used as a noun. Mozilla guidelines to verb noun.
[+] 0xdeadb00f|4 years ago|reply
...to secure the thing known as "secure shell"