this post was submitted on 06 Nov 2026
304 points (98.1% liked)

Technology

89506 readers
3195 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Kazumara@discuss.tchncs.de 12 points 9 hours ago (2 children)

Are you sure the VPN server has the smaller attack surface than the SSH server?

[–] dan@upvote.au 19 points 8 hours ago* (last edited 8 hours ago) (2 children)

Wireguard and apps based on it (like Tailscale) don't respond at all unless the data is signed with the key of a configured peer (or with Tailscale, a system on your tailnet that passes the ACL). It's literally impossible for an outsider/attacker to detect with a port scan since it just ignores unauthenticated packets.

The Wireguard codebase is also extremely small. The core Wireguard implementation (the version in the Linux kernel) is around 5,000 lines long, so an experienced developer can read through all the code if they dedicate a day or two to it, and understand how it works.

For comparison, OpenVPN is around 70,000 lines of code and OpenSSH is around 150,000 lines of code. There's a huge number of features in SSH!

[–] Kazumara@discuss.tchncs.de 5 points 8 hours ago

That is a convincing argument. I wasn't thinking of wireguard, but it makes sense that it's quite small and focused, being in the kernel.

I'm dealing more with OpenVPN and that can be very annoying, that had me lean in the opposite direction earlier (and lets not even speak of the Cisco crap).

[–] MonkderVierte@lemmy.zip 2 points 7 hours ago (2 children)

Why aren't there more minimal implementations like tinyssh?

[–] dan@upvote.au 1 points 22 minutes ago

There's Dropbear SSH, which is the most common choice for a minimal SSH server and client, but even that is around 50,000 lines of code.

[–] theneverfox@pawb.social 4 points 6 hours ago (1 children)

Because all those extra features are really useful. You can run all sorts of things over ssh, from sophisticated file transfer to remote development and tunneling

Ssh is remote code execution. Under any implementation, any authentication methods should be the absolute last line of defense after you've properly locked down access

[–] MonkderVierte@lemmy.zip 1 points 6 hours ago* (last edited 6 hours ago)

Well, yeah but more features in remote code excution = more vulnerabilities. For example sftp: you could also just run ftp over vpn for the same effect. Or just cat the file over ssh. Instead, we have one big monolith. (same as with everything going over tcp)

[–] floquant@lemmy.dbzer0.com 5 points 8 hours ago

OpenVPN, no. Wireguard, yes.