# Why is exposing ssh frowned upon, but a VPN completely fine? — retained record

> Retained reddit record from reddit:homelab.

Canonical: https://highsignal.app/data/records/00d60857b440388b

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:homelab)  published 2026-10-27 13:52 ingested 2026-10-28 02:38

[original source ↗](https://www.reddit.com/r/homelab/comments/1xgt4u3/why_is_exposing_ssh_frowned_upon_but_a_vpn/)

## retained text



```
Often I see people who want to access their homelab from outside their home. When asking how to secure OpenSSH such that it's reasonably secure against bots and scanners, 90% of the comments are: "Don't expose ssh to the web, expose a VPN instead and connect through that."

I don't fully understand the reasoning of these people. OpenSSH is an extremely well audited piece of code, which can easily be set up such that internet facing access is secure enough for 99% of users here. It's public key crypto, the same used in HTTPs, and your VPN.

Sure, a VPN "adds" a second layer of authentication (turn on VPN, then log into server with ssh), but Wireguard and OpenVPN use the same public key crypto used by OpenSSH and TLS, and have similar attack surface. An exploit in your VPN daemon can be just as devastating as an exploit in OpenSSH.
```



document fetched 2026-10-28 00:36 · canonical https://reddit.com/r/homelab/comments/1xgt4u3/why_is_exposing_ssh_frowned_upon_but_a_vpn
