CmdID

CmdID / Commands

az-sshkey

Manage SSH public keys with virtual machines. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Manage SSH public keys with virtual machines. Part of azure-cli (also known as az).

Create a new SSH key

az sshkey create --name name --resource-group resource_groupIdentify
--nameThe name of the SSH public key. Azure CLI reference
--resource-groupName of resource group. Azure CLI reference

Upload an existing SSH key

az sshkey create --name name --resource-group resource_group --public-key "@path/to/key.pub"Identify
--nameThe name of the SSH public key. Azure CLI reference
--resource-groupName of resource group. Azure CLI reference
--public-keySSH public key used to authenticate to a virtual machine through ssh. Azure CLI reference

List all SSH public keys

az sshkey listIdentify

Show information about an SSH public key

az sshkey show --name name --resource-group resource_groupIdentify
--nameThe name of the SSH public key. Azure CLI reference
--resource-groupName of resource group. Azure CLI reference