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 [email protected]
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?
sshd
? What do the logs say?