SSH Tunneling in one line

May 15th, 2009 | by | geeky

May
15

ssh username@servername -L <localport>:destinationserver:<destinationport> -N

if you have multiple local addresses, you will want to specify the bind address.followed by a colon. ie:

ssh username@servername -L localbindaddress:<localport>:destinationserver:<destinationport> -N

a ‘*’ is acceptable as the localbindaddress,
Also you will need this if you have a Virtual IP on your machine.