© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•17mo ago•
1 reply
朱朗熹

Cloudflare Tunnel SSH

Hi guys, I'm working on a personal project for my raspberry pi and was wondering if I could access it through a cloudflare tunnel on any non-local network. I know this is possible through port-forwarding, however I do not want to expose my ports to the internet (for security). I followed this tutorial to no avail https://pimylifeup.com/raspberry-pi-cloudflare-tunnel/ and tried to follow cloudflare documentation https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/use-cases/ssh/ssh-infrastructure-access/ and also to no avail. I have created a tunnel, connected it with my raspberry pi, and routed it to the raspberry pi's local ip address. The tunnel shows as healthy.

I have tried configuring a public hostname for the tunnel to access it, and when I try to connect via terminal :
ssh {user}@{my domain}
Nothing happens and a connection time out error occurs

On the client (laptop I am using to connect to the raspberrypi), I have already enrolled it in Zero Trust as per step two of the documentation above. Is there any way to solve this problem? Am I missing something?
Pi My Life Up
How to set up a Cloudflare Tunnel on the Raspberry Pi
Secure connection without opening ports
How to set up a Cloudflare Tunnel on the Raspberry Pi
Cloudflare Docs
SSH with Access for Infrastructure (recommended) | Cloudflare Zero ...
Access for Infrastructure uses the same deployment model as WARP-to-Tunnel but unlocks more granular policy options and command logging functionality.
SSH with Access for Infrastructure (recommended) | Cloudflare Zero ...
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Cloudflare ZeroTrust SSH tunnel
Cloudflare DevelopersCDCloudflare Developers / general-help
3y ago
SSH Tunnel
Cloudflare DevelopersCDCloudflare Developers / general-help
14mo ago
rsyncing through ssh over cloudflare tunnel
Cloudflare DevelopersCDCloudflare Developers / general-help
9mo ago
Cloudflare Tunnel for SSH not working.
Cloudflare DevelopersCDCloudflare Developers / general-help
2y ago