Last active
September 25, 2015 05:33
-
-
Save gregjhogan/b0aeda0da563a21ccb0b to your computer and use it in GitHub Desktop.
Azure ARM management API through jump server
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
# add alias for lo0 | |
sudo ifconfig lo0 alias 127.0.1.1 up | |
sudo ifconfig lo0 alias 127.0.1.2 up | |
# /etc/hosts alias | |
127.0.1.1 login.microsoftonline.com | |
127.0.1.2 management.azure.com | |
# ssh tunnel | |
sudo ssh -N -L 127.0.1.1:443:login.microsoftonline.com:443 <user>@<jump-server> | |
sudo ssh -N -L 127.0.1.2:443:management.azure.com:443 <user>@<jump-server> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment