Last active
December 17, 2015 02:09
-
-
Save dmerrick/5533607 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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