1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 19:02:09 +02:00
tldr/pages/common/az-sshkey.md
Sebastiaan Speck 3e53d171bd
az-*: update links and page description (#10963)
* az-*: update links and page description

* az-aks: update link and page description

* az-*: fix typos in Spanish translation

* az-*: update links and description in Spanish translation
2023-10-15 13:12:29 +05:30

571 B

az sshkey

Manage ssh public keys with virtual machines. Part of azure-cli (also known as az). More information: https://learn.microsoft.com/cli/azure/sshkey.

  • Create a new SSH key:

az sshkey create --name {{name}} --resource-group {{resource_group}}

  • Upload an existing SSH key:

az sshkey create --name {{name}} --resource-group {{resource_group}} --public-key "{{@path/to/key.pub}}"

  • List all SSH public keys:

az sshkey list

  • Show information about an SSH public key:

az sshkey show --name {{name}} --resource-group {{resource_group}}