1

I need reverse-SSH access to Windows Subsystem for Linux (WSL) Ubuntu. Normally this isn't a problem with Linux machines but with WSL it isn't working.

First I establish the reverse SSH connection from WSL to my server:

ssh -R 19999:localhost:22 user@www.exampleserver.ch

From my server I then attempt to connect to this reverse SSH tunnel:

ssh user@localhost -p 19999

For a standard Linux machine, the connection should now be established. With WSL, instead I encounter the following type of error:

connection closed by ::1 port 19999

Why is this going wrong? How can I get this working?

0

Try

ssh -R 127.0.0.1:19999:127.0.0.1:22 user@www.exampleserver.ch

and

ssh user@127.0.0.1 -p 19999
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.