Skip to content

Instantly share code, notes, and snippets.

@gregjhogan
Last active September 25, 2015 05:33
Show Gist options
  • Save gregjhogan/b0aeda0da563a21ccb0b to your computer and use it in GitHub Desktop.
Save gregjhogan/b0aeda0da563a21ccb0b to your computer and use it in GitHub Desktop.
Azure ARM management API through jump server
# 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