Skip to content

Instantly share code, notes, and snippets.

@m0ngr31
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save m0ngr31/2b4c5e6342008361ae56 to your computer and use it in GitHub Desktop.
Save m0ngr31/2b4c5e6342008361ae56 to your computer and use it in GitHub Desktop.
Easy SSH tunnel of VM w/ grunt and live reload ports w/ auto tmux session
ssh vagrant@192.168.137.100 -L 9000:127.0.0.1:9000 -L 35729:127.0.0.1:35729 -t -- /bin/sh -c 'tmux has-session && exec tmux attach || exec tmux'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment