Kingsfordweg 151, 1043GR Amsterdam, The Netherlands ● 24/7 support — support@novogara.com
Knowledge base

Hardening the SSH daemon

SSH is the front door to your server, and a few settings turn it from a soft target into a hard one. None of them are exotic; all of them are worth doing on day one.

Keys only, no root

Disable password authentication so there is nothing to brute-force, and forbid direct root login so an attacker needs both a key and a privilege step — see SSH access and users and sudo. These two changes remove the bulk of the noise.

Strong algorithms, modern keys

Keep to current key types and ciphers and retire the legacy ones. Modern defaults are sensible; the work is making sure an old config has not left a weak option enabled.

Limit who and from where

Restrict login to the accounts that need it, and where you can, limit the source addresses — a bastion or a firewall rule narrows the exposure. Pair it with fail2ban to blunt what noise remains.


Still stuck? Mail support@novogara.com — an engineer answers, at any hour. Back to the knowledge base