Skip to content

Instantly share code, notes, and snippets.

@benkaiser
Last active December 4, 2015 02:06
Show Gist options
  • Save benkaiser/ccb740ef790d24515b33 to your computer and use it in GitHub Desktop.
Save benkaiser/ccb740ef790d24515b33 to your computer and use it in GitHub Desktop.
SSH Port forward from kaisercraft machine to my laptop
# variables
LOCAL_PORT_AFTER_FORWARD=9000
FORWARDED_PORT=80
DOMAIN=mail.kaisercraft.com.au
USER=benkaiser
SSH_SERVER_PORT=2222
# command
ssh -p $SSH_SERVER_PORT -L $LOCAL_PORT_AFTER_FORWARD:localhost:$FORWARDED_PORT $USER@$DOMAIN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment