ssh-p2p icon indicating copy to clipboard operation
ssh-p2p copied to clipboard

Failure when using port forwarding

Open tyalie opened this issue 5 years ago • 2 comments

I'm currently trying to do port forwarding of another IP in the host network by using a reverse tunnel. I connected everything like how it is described and executed the command

ssh -L 1234:192.168.1.21:3389 -p 2222 [email protected]

The login is successful and the shell responsive. But by the time I try to connect to it over RDP on my client, the connection crashes with this error on the host side:

Failed to accept data channel: The association is closed
Failed to read from data channel stream closed
2019/07/23 16:13:56 main.go:220: disconnected

tyalie avatar Jul 23 '19 14:07 tyalie

Same here, It fails at forwarding VNC and iperf3 in my case. But even on sending a long text on SSH shell (by Copy 'n' Paste), it happens as the same error message. Maybe related to packet size or something is stuck?

aquahika avatar Jan 26 '20 13:01 aquahika

This is the message on the ssh -vv terminal:

debug1: Connection to port 22001 forwarding to localhost port 80 requested.
debug2: fd 15 setting TCP_NODELAY
debug3: fd 15 is O_NONBLOCK
debug3: fd 15 is O_NONBLOCK
debug1: channel 5: new [direct-tcpip]
debug3: send packet: type 90

ssh_dispatch_run_fatal: Connection to 127.0.0.1 port 2222: message authentication code incorrect

This the message on client's dialing terminal:

Failed to push SCTP packet: Failed handling chunk: Failure handling SACK: SACK Cumulative ACK 3353202527 is older than ACK point 3353202528
Failed to accept data channel: The association is closed
Failed to read from data channel stream closed
2020/07/22 10:16:19 main.go:281: disconnected

@nobonobo : Can u point us in some direction to push a fix?

dsculptor avatar Jul 22 '20 04:07 dsculptor