mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-06 15:35:50 +02:00
add page: az sshkey (#8603)
This commit is contained in:
parent
f6ec326944
commit
10fc844c6f
1 changed files with 21 additions and 0 deletions
21
pages/common/az-sshkey.md
Normal file
21
pages/common/az-sshkey.md
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
# az sshkey
|
||||||
|
|
||||||
|
> Manage ssh public key with vm.
|
||||||
|
> Part of `azure-cli`.
|
||||||
|
> More information: <https://docs.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}}`
|
Loading…
Add table
Reference in a new issue