Can I use a Cloudflare SSH tunnel for port forwarding?

Question

Grade: Education Subject: Support
Can I use a Cloudflare SSH tunnel for port forwarding?
Asked by:
54 Viewed 54 Answers

Answer (54)

Best Answer
(428)
Yes, you can use a Cloudflare SSH tunnel for port forwarding. You can specify port forwarding options in the `ssh` command. For example, `ssh -L local_port:target_host:target_port user@your.subdomain.yourdomain.com` will forward local port `local_port` to `target_host` on `target_port` on the server behind Cloudflare. This allows you to access services running on the server's internal network as if they were running locally.