Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm ussing this command to connect to my server and create a tunnel for MYSQL. Today I learn about ~/ssh/config and I want to know if it is possible to setup the port fordwarding in that file to able me to connect with an short name.

ssh -L 3307:localhost:3306 -N -f
share|improve this question

migrated from Nov 12 '11 at 8:47

This question came from our site for professional and enthusiast programmers.

up vote 1 down vote accepted

Yes, you would use the Host option to specify a short name, and User, Hostname, LocalForward for the rest.



share|improve this answer
Thank you, thats awasome!! I dont know the linux ssh client have that!! is just amazing! now i love key auth, tunneling, and ssh config file!! – Arnold Roa Jul 17 '11 at 23:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .