Skip to content

Instantly share code, notes, and snippets.

@erangaeb
Last active April 4, 2016 11:17
Show Gist options
  • Save erangaeb/6c214ce401ccf39ed47b9395f1ef3e29 to your computer and use it in GitHub Desktop.
Save erangaeb/6c214ce401ccf39ed47b9395f1ef3e29 to your computer and use it in GitHub Desktop.
SSH port forwarding via ~/.ssh/config
Host cmb_test
HostName 10.4.1.41
User pagero
LocalForward 7777 172.17.42.1:8443
LocalForward 8888 172.17.42.1:15534
LocalForward 212121 172.17.42.1:212121
# In here define three port forwading rules
# ssh
ssh cmb_test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment