News for hackers. Stuff that matters.
Re:Sshole by Borealid on Thursday November 05, 2026 @08:47AM (#50378996)
What people think of as a very strong password often has <100 "security bits" of entropy.

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.

Re:Sshole by scotty79 on Thursday November 05, 2026 @08:52AM (#50379066)
2^100 is a lot of things to try though
Re:Sshole by jandrese on Thursday November 05, 2026 @08:58AM (#50379123)
Especially if you have Fail2Ban set up.
Re:Sshole by belorn on Thursday November 05, 2026 @09:11AM (#50379279)
Fail2Ban is kind of required unless one like running out of sockets and are unburden by high cpu and disk load.
Re:Sshole by Aachen on Thursday November 05, 2026 @09:42AM (#50379676)
Huh? I run ssh (OpenSSH) on port 22 with root login enabled and no fail2ban on a single-core laptop cpu from fifteen years ago. The load average is 0.00 even with the small mail and web server that runs on it

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)

Re:Sshole by belorn on Thursday November 05, 2026 @10:14PM (#50387719)
Working as a sysadmin, and with disk encryption the constant log writes generated from ssh has been enough to cause some heavy load on severs. Long lasting connections from bots also forced is to increase the maximum number of sockets. Fail2ban has mitigated those issues to the point where neither has been an issue.
Re:Sshole by teddyh on Friday November 06, 2026 @04:17AM (#50390032)
I believe this depends on your exposure level. If you have one, or maybe no, domain names pointed at your server, you are probably fine. If you have tens, or hundreds, of domains pointed at your server (i.e. you are a web site hoster), you will probably need something like fail2ban.
Re:Sshole by Aachen on Friday November 06, 2026 @05:58AM (#50390802)
On another server with the same setup, there's various services and websites running, so load average is never zero there (due to scrapers) but ssh has yet to catch my eye in htop. Whenever I've looked, even the amount of cpu that a Windows VM uses constantly while idle is many times higher than what ssh uses
Re:Sshole by jandrese on Thursday November 05, 2026 @12:07PM (#50381586)
There is regular bot traffic attacking SSH, but it's not "saturate your downlink" level of traffic. If you're getting attacked that heavily then you're being specifically targeted.
Re:Sshole by traceroute66 on Thursday November 05, 2026 @09:15AM (#50379316)
> if you have Fail2Ban set up.

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.

Re:Sshole by Borealid on Friday November 06, 2026 @09:36AM (#50392813)
Could you maybe explain a bit more about how one sets up OpenSSH to block brute-force login attempts with only its built-in features?
Re:Sshole by traceroute66 on Friday November 06, 2026 @02:57PM (#50397535)
> Could you maybe explain a bit more about how one sets up OpenSSH to block brute-force login attempts with only its built-in features?

There are various ways, but you will probably want to start by investigating a combination of :

      - 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.).
Re:Sshole by Elucalidavah on Thursday November 05, 2026 @08:59AM (#50379141)
But the SSH keys are based on asymmetric crypto, not shared secrets.
Re:Sshole by dagss on Thursday November 05, 2026 @04:29PM (#50384708)
That makes it impossible to steal the key if you MITM, but there is still the same chance of guessing it. (Assuming password has as many bits of pure randomness, such as machine generated password.)
Re:Sshole by traceroute66 on Thursday November 05, 2026 @09:18AM (#50379361)
> What people think of as a very strong password often has <100 "security bits" of entropy.

The best password in the world will still be defeated by a simple keylogger or breach of your password manager.

Re:Sshole by Borealid on Saturday November 07, 2026 @07:49AM (#50404107)
The best cryptographic key in the world would be defeated by a breach of your filesystem.

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.