home tags events about login
one honk maybe more

benjojo posted 30 Jan 2025 15:37 +0000

I wonder what the overall global power consumption is caused by SSH brute force attempts.

I guess I need need to figure out how many joules a SSH connection setup costs on a average system ...

benjojo replied 30 Jan 2025 16:22 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/J4fHhH2Y3fX525W27L

My best guess is on a reasonably loaded Intel SP1 system, a SSH connection setup takes 0.007 Joules of power.

A random machine I picked out has 15200 SSH connection setups a day

0.007 * 15200 = 106.4J ~ 0.0000279 kwH

A rough estimate on the amount of accessible SSH servers is around 16,280,000 (based on some scanning stuff from 2 years ago)

16,280,000 * 0.0000279 kwH = 454.212 kwH (a day)

or a constant ish 18.925kw of power.

And that is only assuming one party , so likely 2x, so all of the SSH bruteforces going around is costing around 38kW of power.

on one hand, not that bad (there are some DCs that can put that into a single rack), on the other hand, that's quite a lot of wasted CPU energy

beasts@social.mythic.. replied 30 Jan 2025 17:22 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/2RTpZ36KgV3P9KqD19

@benjojo 500 successful ssh connections with RSA key exchange takes 33s against a Pi4, which is ~200J (~6-7W) which gives you 0.4J for each completed connection. This is an upper bound as it includes the entire power consumption for the machine (3W at idle). My laptop estimates a 2W marginal increase in consumption during the test so intel/arm is similar efficiency. Complete connection setup/teardown is therefore around ~ 0.1-0.2J at each end.

benjojo reposted 30 Jan 2025 16:23 +0000
original: benjojo@benjojo.co.uk

My best guess is on a reasonably loaded Intel SP1 system, a SSH connection setup takes 0.007 Joules of power.

A random machine I picked out has 15200 SSH connection setups a day

0.007 * 15200 = 106.4J ~ 0.0000279 kwH

A rough estimate on the amount of accessible SSH servers is around 16,280,000 (based on some scanning stuff from 2 years ago)

16,280,000 * 0.0000279 kwH = 454.212 kwH (a day)

or a constant ish 18.925kw of power.

And that is only assuming one party , so likely 2x, so all of the SSH bruteforces going around is costing around 38kW of power.

on one hand, not that bad (there are some DCs that can put that into a single rack), on the other hand, that's quite a lot of wasted CPU energy