Skip to content

Win32 OpenSSH Reverse Connection Tunnelling is not working #1265

Open
@mwestphal

Description

@mwestphal

Server OperatingSystem
any linux based os

Client OperatingSystem
Windows 10 with Spring Update

What is failing
There is definitely a bug in Microsoft OpenSSH implementation from 2018 Spring Update.

How to test it :
On the local (Windows 10), install Python3, Putty and make sure ssh is available.
Then

  1. Run a python http server in a terminal (on port 8000 by default)

    python -m http.server

  2. Create a reverse connection ssh tunnel

    ssh -R 8080:localhost:8000 user@remote

On the remote, connect trough the tunnel with telnet
On The remote, connect to it trough telnet

>telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.

The tunnel is still runnning but telnet disconnect almost instantly after the connection.

If you replase ssh by the plink.exe from putty, it works flawlessly and you can connect with a browser.

Expected output

    >telnet localhost 8080
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.

Actual output

    >telnet localhost 8080
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    Connection closed by foreign host.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions