Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tunnel ssh windows 10 not works #5501

Open
toto6976 opened this issue Nov 19, 2024 · 4 comments
Open

tunnel ssh windows 10 not works #5501

toto6976 opened this issue Nov 19, 2024 · 4 comments

Comments

@toto6976
Copy link

toto6976 commented Nov 19, 2024

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
Copy link
Collaborator

rom1v commented Nov 19, 2024

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

@toto6976
Copy link
Author

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
Copy link
Collaborator

rom1v commented Nov 19, 2024

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
Copy link
Author

toto6976 commented Nov 19, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants