From 3c8b93398a84752b88cf6f024e3563b532fd3d71 Mon Sep 17 00:00:00 2001 From: Simon Dahlbacka Date: Sat, 1 Oct 2022 16:09:52 +0300 Subject: [PATCH] add page: az sshkey --- pages/common/az-sshkey.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pages/common/az-sshkey.md diff --git a/pages/common/az-sshkey.md b/pages/common/az-sshkey.md new file mode 100644 index 00000000000000..d049ee4547eba2 --- /dev/null +++ b/pages/common/az-sshkey.md @@ -0,0 +1,21 @@ +# az sshkey + +> Manage ssh public key with vm. +> Part of `azure-cli`. +> More information: . + +- 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}}`