I have a remote machine I can access only through a cloudflared tunnel. In my .ssh/config file I have
Host remote
User my-user-name
ProxyCommand cloudflared access ssh --hostname remote-host-name.com
this works fine. When I ssh remote I get a prompt on remote-host-name.com.
But when I just run the cloudflared command directly I get an error:
local$ cloudflared access ssh --hostname remote-host-name.com
SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.5
Invalid SSH identification string.
I thought ssh was just "exec"ing the ProxyCommand, but it must be doing something more, what else is it doing?