This question already has an answer here:
- How to run scripts on start up? 8 answers
- How do I start applications automatically on login? 14 answers
I need to run the following command (with real parameters) after login:
ssh -f firstname.lastname@example.org -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?