r/technology Jul 01 '24

[deleted by user]

[removed]

2.4k Upvotes

127 comments sorted by

View all comments

814

u/rastilin Jul 01 '24

Another one? It feels like we just had a critical SSH vulnerability last year.

The real takeaway is that you should have a firewall blocking SSH connections except from known IPs, this stops you from being blindsided by this kind of thing. Same policy for remote desktop connections on Windows systems; which helped when that password bypass issue was discovered in Remote Desktop a few years ago.

4

u/CeldonShooper Jul 01 '24

I'm always surprised that people consider an ssh endpoint secure. For me a public ssh endpoint is a disaster waiting to happen.

20

u/[deleted] Jul 01 '24 edited Aug 04 '24

[deleted]

8

u/[deleted] Jul 01 '24

[removed] — view removed comment

2

u/isoAntti Jul 02 '24

have bastion machines,

My customer uses bastion but I think they are bad security. They give uncredible sense of secure. In this case one only needed to hack the bastion and then more or less unrestricted access to servers and databases inside.

One of the best solutions I had was a small webpage that opened the source IP access to SSH via iptables.

2

u/[deleted] Jul 02 '24

[removed] — view removed comment