137
submitted 6 months ago by SomeBoyo@feddit.de to c/selfhosted@lemmy.world
you are viewing a single comment's thread
view the rest of the comments
[-] ShortN0te@lemmy.ml 2 points 6 months ago

Imagine that the xz exploit actually made it into your server, so your sshd was vulnerable. Having it on another port does seem helpful then.

Nope. Your entire server can be scanned in less than a second for an open ssh port.

IPv6 does not change the fact since when your server is attacked the hist IP is already known.

[-] solrize@lemmy.world 2 points 6 months ago

Maybe I'm missing something but how is the host ip known? The server has a maybe-known range of addresses, but I don't announce which address has an sshd listening. There are 2**64 addresses in the range, so scanning in 1 second doesn't sound feasible.

[-] possiblylinux127@lemmy.zip 1 points 6 months ago* (last edited 6 months ago)

I've never seen an attack that scans all ports. Normally it just checks open ports and then tries common credentials and exploits. If that fails it moves on to the next IP.

Changing the default port on SSH probably isn't going to do much as SSH is already pretty secure. However it is a good rule of thumb to change the defaults.

this post was submitted on 20 Apr 2024
137 points (98.6% liked)

Selfhosted

40153 readers
269 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS