Notes on configuring ssh over cloudflared
-
Configure cloudflare tunnel on TARGET
Add an entry to
/etc/cloudflared/config.yml
1 2
- hostname: home.carltons.us service: ssh://localhost:22
Remember to restart cloudflared
-
Configure tunnel to TARGET on cloudflared dashboard
- Install cloudflared on the Mac:
1
brew install cloudflare/cloudflare/cloudflared
- Add this to
~/.ssh/config
1 2 3 4
Host TARGET User mike IdentityFile ~/.ssh/id_ed25519 ProxyCommand cloudflared access ssh --hostname %h