SSH to a machine across Cloudflare Tunnel

(assumes the machine is already connected to the Cloudflare tunnel, eg via Cloudflare Daemon)

After setting up the public hostname above, you can SSH to a machine across cloudflare tunnel:

Source: SSH · Cloudflare Zero Trust docs

Add the following to ~/.ssh/config :

Host ssh-s6.mundy.co
	ProxyCommand /opt/homebrew/bin/cloudflared access ssh --hostname %h

Now just ssh like this:

ssh dan@ssh-ss6.mundy.co

Extra steps to make it browser based

Source: SSH · Cloudflare Zero Trust docs


Revision #4
Created 4 April 2024 00:42:06 by Dan Mundy
Updated 4 April 2024 00:57:15 by Dan Mundy