in Geeky

SSH Tunneling in one line

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.

Related Posts

Written By:

Add a Comment