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 ...
tedu@honk.tedunangst..
replied 30 Jan 2025 22:31 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/J4fHhH2Y3fX525W27L
@benjojo it was enough that it makes the difference between my laptop fans running or not. https://flak.tedunangst.com/post/why-did-my-fans-come-on
benjojo
replied 30 Jan 2025 23:11 +0000
in reply to: https://honk.tedunangst.com/u/tedu/h/Drs3bYFQ61B8K2VX33
@tedu ahhh hmmm, I had not considered the actual password hashing as well. I was only testing the connection setup (aka, RSA sign/verify and a bunch of (E)?DH KEX)
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 A rough estimate on the amount of accessible SSH servers is around 16,280,000 (based on some scanning stuff from 2 years ago) 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
0.007 * 15200 = 106.4J ~ 0.0000279 kwH
16,280,000 * 0.0000279 kwH = 454.212 kwH (a day)
wolf480pl@mstdn.io
replied 30 Jan 2025 16:27 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/23Nq2H2NfQfpWK4198
benjojo
replied 30 Jan 2025 16:29 +0000
in reply to: https://mstdn.io/users/wolf480pl/statuses/113918242600336694
benjojo
replied 30 Jan 2025 16:26 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/23Nq2H2NfQfpWK4198
It's worth keeping in mind that this final number also extremely depends on the 0.007J per SSH connection number, any real change to that (I think 0.007J is on the low side) will radically change the final KwH for the worse
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.
_aD@hachyderm.io
replied 30 Jan 2025 17:29 +0000
in reply to: https://social.mythic-beasts.com/users/beasts/statuses/113918460378628802
beasts@social.mythic..
replied 30 Jan 2025 17:40 +0000
in reply to: https://hachyderm.io/users/_aD/statuses/113918487322665936
benjojo
replied 30 Jan 2025 18:01 +0000
in reply to: https://social.mythic-beasts.com/users/beasts/statuses/113918460378628802
@beasts mmmm, that is a lot higher per connection, but also I guess one has to account for what most of the open SSH servers are actually running on. Super fiddily, as systems dont really provide a very good way to figure out how fast their CPUs are :P (or when they do, it is normally described as a "DoS"!)
leah@blahaj.social
replied 30 Jan 2025 16:40 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/23Nq2H2NfQfpWK4198
cks@mastodon.social
replied 30 Jan 2025 21:41 +0000
in reply to: https://blahaj.social/users/leah/statuses/113918293630209935
leah@blahaj.social
replied 30 Jan 2025 21:42 +0000
in reply to: https://mastodon.social/users/cks/statuses/113919477013700879
me@social.elizabeth...
replied 30 Jan 2025 21:44 +0000
in reply to: https://mastodon.social/users/cks/statuses/113919477013700879
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 A rough estimate on the amount of accessible SSH servers is around 16,280,000 (based on some scanning stuff from 2 years ago) 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
0.007 * 15200 = 106.4J ~ 0.0000279 kwH
16,280,000 * 0.0000279 kwH = 454.212 kwH (a day)
albonycal@fosstodon...
replied 30 Jan 2025 15:50 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/J4fHhH2Y3fX525W27L
@benjojo and how much power can be saved by changing the SSH port to a random one. Once one figures out the power consumption, we can claim that IPv6 is officially more power efficient as well, because the bots won't bother to scan it ;)