SSH Tunnel "Post Login" Commands

A fix for this issue has been implemented in version 2026.2.10
Implemented Backlog

SSH Tunnel "Post Login" Commands

avatar

Hello,

Would it be possible to add the "Post Login" tab to the SSH "VPN/Tunnel/Gateway" entry type?

I'm trying to access a device using VNC over an SSH tunnel, but I don't want to the VNC server to always be running, instead I want to start it after creating the tunnel.

This is an example of what I'm trying to achieve:

ssh username@host -f -L 5900:127.0.0.1:5900 "x11vnc -localhost"

Thanks.

All Comments (8)

avatar

Hello,

Thank you for reaching out to Devolutions Support.

You can add a script or macro either before or after the connection by following these steps:

1. Navigate to the 'Properties' of your SSH tunnel entry.

2. Go to the 'Events' tab.

3. Click on 'After Open' or 'Before Open'.

4. Create a script exactly as you would in the terminal to launch the VNC server.

Please don't hesitate to reach out if you need detailed help setting this up or have any other questions.

Best regards,

Carl Marien

avatar

I tried using an "After open" script, but that seems to execute on the local device not the remote, because it complains that 'x11vnc' is not found; is there a way to execute the script on the remote device?

I also tried using the "After open" typing macro, but it didn't work, and I'm not sure exactly where the "typing" happened!

Thanks.

avatar

Hello,

it is possible to execute a command on remote connections using the "Execute the following program after login" option in the program section in the entry properties

 

Best regards,

Carl Marien

A fix for this issue has been implemented in version 2026.2.10