Cloudflared can not connect to Windows OpenSSH Server

I have tunnel

Order #1 my.do.main -> rdp:192.168.0.1
Order #2 my.do.main -> ssh:192.168.0.1

(domain is same)

The 192.168.0.1 is my Windows desktop.

On my Macbook, I can RDP to my desktop via cloudflared lacunchd service.
But I can not connect to SSH via tunnel. Connect via internal IP 192.168.0.1 is work fine.

The ssh config is here

Host win
	User name
	HostName my.do.main
	IdentityFile ~/.ssh/id_ed25519
	ProxyCommand /opt/homebrew/bin/cloudflared access ssh --hostname %h

and run ssh win will get Connection closed by UNKNOWN port 65535.

Simple run /opt/homebrew/bin/cloudflared access ssh --hostname my.do.main --loglevel debug will freeze and not any output that I can provide

The protocols must be unique per hostname. You can rdp.example.com and ssh.example.com and point them to respective services, but Cloudflared has no knowledge of the protocol being tunneled and thus no ability to route RDP to one port and ssh to another for the same hostname.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.