Skip to content

Instantly share code, notes, and snippets.

@dmerrick
Last active December 17, 2015 02:09
Show Gist options
  • Save dmerrick/5533607 to your computer and use it in GitHub Desktop.
Save dmerrick/5533607 to your computer and use it in GitHub Desktop.
# HOW TO USE TUNNELS TO ACCESS THE LAB MACHINES
# from your laptop:
# create a new tmux session:
tmux new -s tunnels
# open tunnel for HTTP:
ssh -L 4567:<IP OF LAB MACHINE>:80 <IP OF HOST ON LAB WIFI>
# create new window in tmux
# open tunnel for SSH:
ssh -L 2222:<IP OF LAB MACHINE>:22 <IP OF HOST ON LAB WIFI>
# put the following in your .ssh/config:
# temp for openstack training
Host stack
User stack
Port 2222
Hostname localhost
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
# now you can ssh in with:
ssh stack
# and access the webui at:
http://localhost:4567
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment