Cloudflare Tunnel browser based ssh "Connection Refused" Error
# 1. Cloudflare Tunnel “Connection Refused” Error
-
Problem:
cloudflaredlogs showed aconnection refusederror forlocalhost:22. -
Cause: The tunnel was running in a Kubernetes container. Inside a container,
localhostrefers to the container itself, not the host machine where the SSH service was running. -
Fix: Add
hostNetwork: trueto the pod’s Deployment YAML. This makes the container share the host’s network, allowing it to connect tolocalhostcorrectly.
Tags