Forrest logo
back to the az tool

az-sshkey:tldr:7cef3

az-sshkey: Show information about an SSH public key.
$ az sshkey show --name ${name} --resource-group ${resource_group}
try on your machine

The command "az sshkey show --name ${name} --resource-group ${resource_group}" is used to view the details of an SSH key in Azure.

Here's the breakdown of the command:

  • "az sshkey show": This part of the command specifies that we want to view the details of an SSH key.

  • "--name ${name}": This flag is used to specify the name of the SSH key. The value for the name is passed as a variable ${name}, where the actual value will be provided when executing the command.

  • "--resource-group ${resource_group}": This flag is used to specify the resource group that contains the SSH key. Similarly to the previous flag, the value for the resource group is passed as a variable ${resource_group}.

By executing this command, you will get the detailed information of the specified SSH key. The output may include details like the key name, type, public key value, fingerprint, and creation time.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the az tool