First RDP launch sometimes does not establish the SSH tunnel connection, second launch works
Hi,
I'm experiencing an issue when using an SSH Tunnel configured as the VPN for an RDP session.
The VPN (SSH tunnel) is configured on the folder and inherited by the RDP entry.
Sometimes the first attempt to open the RDP session does not establish a connection. The RDP client stays in the initialization phase and eventually times out. If I close both the RDP session and the SSH tunnel, then launch the exact same RDP entry again (which recreates the SSH tunnel automatically), it connects successfully.
Here are my observations:
From what I can see, this doesn't appear to be an issue with the SSH tunnel failing to establish. Instead, it looks as though the first RDP launch sometimes doesn't trigger the forwarded connection through the existing tunnel, even though the RDP client is connecting to the local forwarded port.
Has anyone experienced something similar, or is this a known issue? Are there any additional RDM logs that would help determine why the first RDP launch doesn't appear to initiate the forwarded connection through the SSH tunnel?
Thanks!
Hello,
Thank you for the detailed explanation. Based on what you've described, it sounds like the SSH tunnel is being established successfully, but the RDP session may be attempting to use it before everything is fully ready.
Could you try the following?
This will give the SSH tunnel additional time to become fully available before the RDP client attempts to connect.
Please let us know if increasing the delay resolves the issue or if the behavior remains the same. If it still occurs, we can investigate further with additional logging.
Best regard
Carl Marien
Hello,
thanks for your reply.
The "Delay before reconnecting" is already set to 30 seconds.
The "Delay after execution" is already set to 3 seconds but I see clearly in the log the the SSH Tunnel is established and ready in the 1 second.
Hello,
Thanks for the extra detail the fact that the SSH server never receives the forwarded connection request on the first attempt (but does on the second) is very useful, and rules out the tunnel-establishment delay.
Could you try the following, in this order, and let us know which one changes the behavior?
The step that's most likely to resolve it outright is #1 (fixed port). Steps #3 and #4 will let us pinpoint the root cause if #1 and #2 don't fix it.
Best regards,
Carl Marien