az sshkey
Manage ssh public keys with virtual machines.
Part of azure-cli
.
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}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.