commands.sh

az sshkey

all

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

More info →

Options (1)

-g, --resource-groupboolean

Create a new SSH key

Example: az sshkey create --name {{name}} {{[-g|--resource-group]}} {{resource_group}}

Examples (4)

Create a new SSH key

az sshkey create --name name [-g|--resource-group] resource_group

Upload an existing SSH key

az sshkey create --name name [-g|--resource-group] resource_group --public-key "@path/to/key.pub"

List all SSH public keys

Show information about an SSH public key

az sshkey show --name name [-g|--resource-group] resource_group
made by @shridhargupta | data from tldr-pages