Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
112.32k stars 10.74k forks source link

tunnel ssh windows 10 not works #5501

Open toto6976 opened 2 hours ago

toto6976 commented 2 hours ago

Good morning, I'm trying to make an ssh tunnel from windows 10 but it doesn't work. PS C:\Users\scrcpy-win64-v2.7\scrcpy-win64-v2.7> ssh -CN -L5038:localhost:5037 -R27183:localhost:27183 xx.xx.xxx.xxx -pxxxx ssh: connect to host xx.xx.xxx.xxx port xxxx: Connection timed out

Can you help me ?

rom1v commented 2 hours ago

With -N (in your -CN), it is expected that nothing visible happens. But the tunnel should be established. Add -v for verbosity.

toto6976 commented 2 hours ago

ssh -v -N -L5038:localhost:5037 -R27183:localhost:27183 xx.xx.xxx.xxx -pxxxx OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2 debug1: Connecting to xx.xx.xxx.xxx [xx.xx.xxx.xxx] port xxxx. debug1: connect to address xx.xx.xxx.xxx port xxxx: Connection timed out ssh: connect to host xx.xx.xxx.xxx port xxxx: Connection timed out

rom1v commented 2 hours ago

ssh: connect to host xx.xx.xxx.xxx port xxxx: Connection timed out

Ok, do you have a SSH server running on xx.xx.xxx.xxx listening on xxxx?

toto6976 commented 1 hour ago

yes i do. I opened the SSH window in the 'scrcpy' folder (open a terminal here) It doesn't work with Putty either! something is blocked at the beginning I think