Unable to SSH via tunnel

I’m having difficulties setting up SSH access to my server. I’ve read several guide and tutorials but seem to be going around in circles. so far I have:

Created a tunnel - under private network I added the IP address of my server
I set ssh.mydomain.com and localhost:22 under service
I downloaded cloudflared and issued the command to install the service for the tunnel

The tunnel shows in my dashboard as active.

In my config file inside .ssh I added the lines:


host ssh.mydomain.com
    ProxyCommand ~/.ssh/cloudflared-windows-amd64.exe access ssh-gen --hostname %h && cloudflared access ssh --hostname %h

I read about configuring the split tunnel, my account is set to “exclude” but when I try to exclude my server the address is not in the list - so I am not sure what to do.

If I try to connect via command line:


ssh [email protected]
failed to find Access application at https://ssh.mydomain.com
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535

What am I missing?