Skip to content

Instantly share code, notes, and snippets.

@takekazuomi
Last active March 12, 2022 00:21
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 takekazuomi/ba92e0d736fdc580e9c56e2643bbfcb4 to your computer and use it in GitHub Desktop.
Save takekazuomi/ba92e0d736fdc580e9c56e2643bbfcb4 to your computer and use it in GitHub Desktop.

memo

az network bastion ssh --name bastionhost --resource-group omivm04-rg \
  --target-resource-id /subscriptions/*****************/resourceGroups/omivm04-rg/providers/Microsoft.Compute/virtualMachines/flatcar \
  --auth-type ssh-key --username core --ssh-key ./.secure/vm-keys
-zsh
  \_ bash /usr/bin/az network bastion ssh --name bastionhost --resource-group omivm04-rg --target-resource-id /subscriptions/*****************/resourceGroups/omivm04-rg/providers/Microsoft.Compute/virtualMachines/flatcar --auth-type ssh-key --username core --ssh-key ./.secure/vm-keys
      \_ /usr/bin/../../opt/az/bin/python3 -Im azure.cli network bastion ssh --name bastionhost --resource-group omivm04-rg --target-resource-id /subscriptions/*****************/resourceGroups/omivm04-rg/providers/Microsoft.Compute/virtualMachines/flatcar --auth-type ssh-key --username core --ssh-key ./.secure/vm-keys
          \_ /usr/bin/ssh core@localhost -i ./.secure/vm-keys -p 35693 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=Error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment