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
Hello,
thanks for the troubleshooting steps.
It is not possible for me to go with option 1 since the RDP entries in the folder inherit the VPN config from the folder and I need to be able to open multiple RDP connections in the folder simultaneously.
Option 2 and 3 I can not find them in RDM
I can't find "VPN connection mode" in the VPN options of the folder.
Also I don't have Diagnostic in the Help Tab in the ribbon
Best regards,
Tim
Hello,
Thanks for the follow-up and for clarifying your setup.
You're right—the fixed-port suggestion isn't suitable since you need multiple RDP sessions running in parallel through the same SSH tunnel.
A workaround that has helped in similar cases is to move the SSH Tunnel link from the folder to each individual RDP entry.
For each RDP entry:
This keeps dynamic ports while avoiding potential conflicts caused by folder-level inheritance.
If you'd prefer to keep the tunnel at the folder level, could you try setting:
This keeps the tunnel open between launches and may avoid the issue.
Could you also send us a screenshot of Help > About in RDM? That will confirm your exact version and edition so we can provide the correct logging instructions.
Best regards,
Carl Marien
Hello,
I would prefer to keep the tunnel at the folder level.
The settings was already at Always connect for the connect setting.
For the Close setting in don't have "Never" but "Manually later"
I can try it but it likely wont help since the problem sometimes happens also on the first connection of the day.
If I know were to activate the logs we hopefully can find better insights on the problem.

6a9ba857-5769-4ad0-808b-96942f5cdef4.png
27c269be-ceae-4495-83e1-2f9111fdf6eb.png
Hello Tim,
Thank you for the screenshots.
The log controls are still under the Help tab; the button may be hidden if the ribbon is in compact mode.
Please expand the ribbon (double-click any tab header if minimized) and use the following buttons in the Help tab:
Could you also confirm which SSH engine is selected in the SSH Tunnel entry's Advanced tab (Devolutions SSH, PuTTY, or OpenSSH)?
The direct-tcpip behavior differs between engines and this detail will help narrow the cause.
As an interim workaround, adding a small pre-warm step on the SSH Tunnel entry, such as a short SSH shell command executed on tunnel open, often masks this timing issue by triggering the forwarded channel before the RDP client starts.
Finally, is the failure limited to the first launch of the day, or does it also happen intermittently later on?
Reference: https://docs.devolutions.net/rdm/knowledge-base/how-to-articles/send-application-logs/
Best regards,
Carl Marien