I set up a tunnel to access the ssh service of my server today. When I tried to connet to the tunnel in Windows(cmd) and browser-rendered terminal, the tunnel worked well. However, when I tried to connect to it in WSL2(ubuntu), nothing happened after I authorized the access in the url given.
The command I used:
Nothing happened after this.I tried to type something and press enter, nothing happened either.
.config is set to:
Host ssh-shs.caomingjun.com ProxyCommand cloudflared access ssh --hostname %h
I tried to run
cloudflared access ssh --hostname ssh-shs.caomingjun.com , it outputs :
Nothing happened after this. If I type something and press enter, it returns
Invalid SSH identification string.
By the way, I reinstalled the
openssh-server in WSL2(ubuntu) when I installed WSL2(ubuntu). (But I don’t think it has anything to do with the problem)