I’m trying to configure a cloudflare tunnel that goes to my home server because it’s behind CGNAT.
If I add a route that goes to my Apache server, it seems to show up correctly.
If I add a route to SSH, it doesn’t seem to work. Trying to run the SSH command to that route will just be stuck forever.
I tried configuring the SSH browser rendering in Cloudflare, but then after login it just gives me an unexpected error occurred.
Anyone who has experience setting something like this up can tell me what I’m doing wrong?
I don’t think Cloudflare tunnels (at least in the free tier) support non-HTTP protocols, like SSH
Seems like they do. I managed to get it to work. It even mentions SSH specifically as an example in their configuration if you want to bind a public domain to one of the servers in your tunnel.
Dont expose SSH to the web. Set up a VPN connection and SSH through that instead.
i mean, I’m not using password login only my own trusted certificates.
if I use a selfhosted VPN. (which I’m going to do too) I would still need to expose the port to that vpn server somehow, since I’m behind CGNAT.
With the cloudflare tunnel, I can also use their 2FA to protect access.
that also make it possible to use it on untrusted devices or public computers, if I enable the web-rendered ssh terminal. (which is one of my other use cases, since I sometimes travel light without laptop, but still want to configure my server sometimes)

