Cloudflared can not connect to Windows OpenSSH Server

I have tunnel

Order #1 -> rdp:
Order #2 -> ssh:

(domain is same)

The 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 is work fine.

The ssh config is here

Host win
	User name
	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 --loglevel debug will freeze and not any output that I can provide

The protocols must be unique per hostname. You can and 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.