Let’s say you want to use the tunnel for ssh.example.com
:
Create a proxied CNAME record with name ssh
and the tunnel as the value (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.cfargotunnel.com
).
Then, your ssh config as follows:
Host ssh.example.com
User myuser
IdentityFile /path/to/key
ProxyCommand /usr/local/bin/cloudflared access ssh --hostname %h