1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/az-sshkey.md

22 lines
571 B
Markdown
Raw Normal View History

2022-10-01 22:11:32 +03:00
# az sshkey
2022-10-25 21:27:29 -05:00
> Manage ssh public keys with virtual machines.
> Part of `azure-cli` (also known as `az`).
> More information: <https://learn.microsoft.com/cli/azure/sshkey>.
2022-10-01 22:11:32 +03:00
- 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}}`