SSH Tunnel Setup Failure
Hello Cloudflare! I am trying to access SSH using a cloudflare tunnel. I have already tried running a HTTP tunnel which worked successfully, however I can't seem to figure out how to run it with SSH. I have tried both local and cloud (via dashboard) configurations but none of which worked.
I am going to post steps I took as I redo and document them
12 Replies
Starting Point
Here's my DNS records in full before I start doing anything with Zero Trust (used DevTools to remove origin IP though)
This cloudflare account has not used Zero Trust at all yet and has this page whenever you visit Zero Trust from the CF Dashboard
Creating a Tunnel using the ZT Dashboard
I selected a 'cloudflared' option rather than WARP (also installing this on a Windows system) and named it
SSH Tunnel
. And completed the steps to install and install the cloudflared serviceAnd the Windows service got installed and shows up on the ZT Tunnel Setup
I used this route configuration for the tunnel
The tunnel shows up and appears as healthy
I ran the command to create an SSH config and saved it
Well I'd be daym'd
Running this command worked, asked for auth and it worked
Why it didn't work earlier? I am not sure
Sounds like you figured it out! I'll mark this as self-solved then. Feel free to comment or make a new thread if not.
side note: If you wanted to troubleshoot that further in the future, I would just do it without the proxy command directly
ex:
cloudflared access tcp --hostname ssh.site.com --url 127.0.0.1:9210
and in another window then ssh [email protected] -p 9210, then capture errors from both