mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-26 13:53:05 +00:00
Update cheatsheets
This commit is contained in:
26
az-sshkey
Normal file
26
az-sshkey
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user