2
1
Every time I login into my computer I start a SSH connection to a remote computer for database work. How can I automate this in Ubuntu so that I don't have to type this in each time I login to my computer?
ssh -L 3333:dbserver:3306 user@othersite.com
Hmm.. this isn't working now that I have logged out and tested it. Do you need to type anything else before "db_connect" in the prompt? It just says "command not found". – Xeoncross – 2010-02-25T18:54:32.340
Never mind. I put the command in single quotes and it worked. – Xeoncross – 2010-02-25T18:56:33.527
You have to either relaunch your prompt or reload your bashrc with
source ~/.bashrc
– Loïc Wolff – 2010-02-25T19:04:48.3771Behold! Ye Shall Worship The Almight Aliasing! :D – dag729 – 2010-02-25T19:13:19.687