In other words, conceptually, at the end if the day, isn’t a key just another name for a password, really?
[–] minitech 2 days ago
[–] TZubiri 2 days ago
but I guess that the hash is always the same unlike with pub priv key mechanism.
[–] mkj 2 days ago
[–] traceroute66 2 days ago
Kind of irrelevant what gets sent to the server and what happens on the server.
Password is already easily defeatable long before it even leaves your computer, thanks to keyloggers and/or password manager breaches and/or old-school shoulder surfing (assisted in the 2026 era by covert filming and AI).
All of which are not vulnerabilities with hardware-backed keys which you don't even need a Yubikey for these days since most modern computers and smartphones have secure enclaves and/or TPMs. (Yubikeys are still great though).
[–] Borealid 2 days ago
Keys are usually at least 128 bits of entropy, and it's easy to take them up to 256.
Yes, both are a shared secret, but password auth - even with challenge-response - is weaker than key auth exactly because key auth provides more guess resistance.
[–] Elucalidavah 2 days ago
[–] dagss 2 days ago
[–] traceroute66 2 days ago
The best password in the world will still be defeated by a simple keylogger or breach of your password manager.
[–] Borealid 21 hours ago
The comparison here is between in-memory cryptographic keys and in-memory passwords. Yeah typing a password into a keyboard adds a vulnerability in between the keyboard and the computer, but it's not a huge difference in security posture. If the device using the secret is compromised, so is the secret, whether it came from the user's mind or not, whether it was stored encrypted before the user used it or not.
A physically separate hardware security module does add protection but I think that's a different conversation.
[–] scotty79 2 days ago
[–] jandrese 2 days ago
[–] traceroute66 2 days ago
Worth noting that if you are running a remotely recent version of SSH it has everything you need built-in. No need for Fail2Ban on SSH these days if your config is fully modernised.
[–] Borealid 1 day ago
[–] traceroute66 1 day ago
There are various ways, but you will probably want to start by investigating a combination of the below tuned for your environment :
- PerSourceMaxStartups
- PerSourceNetBlockSize
- PerSourcePenalties
- Match Invalid-User + RefuseConnection
`PerSourcePenaltyExemptList` is also worth a mention if its the sort of thing you like, we don't use it at $work as whitelisting IP ranges is not really in-line with modern security best-practice (zero trust etc.).[–] belorn 2 days ago
[–] jandrese 2 days ago
[–] Aachen 2 days ago
What cpu and especially what disk load are you talking about? Also not running out of sockets, not sure if that's RAM-dependent (the box has 2GB)
[–] belorn 2 days ago
[–] teddyh 2 days ago
[–] Aachen 1 day ago
[–] 8organicbits 2 days ago
[–] dwedge 2 days ago
[–] traceroute66 2 days ago
Even 5+ years ago, hardware-backed SSH keys were a thing (Yubikey). The only difference today is that its 100% easier to do keys properly because of the widespread commoditisation of secure enclaves in desktops and smartphones to support FIDO, its basically free of charge now because you're not obliged to buy a Yubikey.
[–] epihelix 2 days ago
Well, it's a heck of a lot weaker in this instance (at least when `PasswordAuthentication no`)
SSH certificates are cool too.