[Regression 0.29.1] SSH port forwarding for RDP drops immediately when -N flag is used
Author: CubicPantsCreated Oct 1, 2026Updated Oct 1, 2026
Summary / Description
When establishing an SSH tunnel with local port forwarding (-L) targeting an RDP destination, using the -N flag (do not execute a remote command) causes the tunnel/connection to terminate immediately.
Omitting -N (allowing a shell/interactive session to open) keeps the tunnel alive and functioning as expected.
This worked properly in 0.28.5 and appears to be a regression introduced in 0.29.1.
Environment
- Warpgate Version:
0.29.1(worked in0.28.5) - Client OS: Windows 11
- SSH Client: OpenSSH_10.3p1
- Target Protocol: RDP
Steps to Reproduce
- Run the SSH command with
-N:
ssh -4 -N -L 127.0.0.1:20008:127.0.0.1:3389 user:rdp-target@<WARPGATE_IP>- Connect to the forwarded port using an RDP client pointing to
127.0.0.1:20008. - The SSH connection drops immediately.
Expected Behavior
The SSH tunnel remains open in the background without requiring an interactive session, forwarding traffic to the remote target.
Actual Behavior
The SSH connection disconnects immediately when the -N flag is supplied.
Workaround
Omitting -N allows the connection to stay open:
ssh -4 -L 127.0.0.1:20008:127.0.0.1:3389 user:rdp-target@<WARPGATE_IP>Source: warp-tech/warpgate