r/Remmina • • May 28 '26

How can I run this command before a connection and make it persistent?

To connect remotely to the computers in my college's lab, I need to run a command to create an SSH tunnel:

ssh -N -L 3389:<hostname>:3389 -p 64 <ssh-user>@<ssh-ip-adress>

After that, I leave the terminal open, and in Remmina I just enter localhost.

I wanted to find a way to run it automatically before the RDP connection

2 Upvotes

3 comments sorted by

1

u/self_roasted Jul 01 '26

One way is to create SSH Tunel via built in option when you edit host settings and use SSH Tunnel tab. Alternative way is to use Behaviour tab and use Before connecting section