I need to run the following command (with real parameters) after login:
ssh -f [email protected] -L 54321:example.com:54321 -N
I need it only for my user, not all users on the machine. Also, I need it to run whether I login via the GUI or via SSH to a plain shell terminal. I would even like to know how to do this on machines without a GUI installed.
Where would I put the above line to be run as explained?