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.

label, ,

About the author

Add a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.