gcloud beta compute os-login ssh-keys describe Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud beta compute os-login ssh-keys describe - describe an SSH Public Key from an OS Login Profile
- SYNOPSIS
gcloud beta compute os-login ssh-keys describe(--key=KEY|--key-file=KEY_FILE)[GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(BETA)gcloud beta compute os-login ssh-keys describeaccepts either a string containing an SSH Public Key or a filename for an SSHPublic key and displays that key from the user's OS Login Profile. The key valueused can either be the full SSH key or the OS Login fingerprint for that key.- EXAMPLES
- To show all of the information for the key stored in your OS Login profile thatmatches the key in
/home/user/.ssh/id_rsa.pub, run:gcloudbetacomputeos-loginssh-keysdescribe--key-file=/home/user/.ssh/id_rsa.pubTo show all of the information about the key with a fingerprint of'e0d96d6fad35a61a0577f467940509b5aa08b6dea8d99456ec19a6e47126bc52', run:
gcloudbetacomputeos-loginssh-keysdescribe--key='e0d96d6fad35a61a0577f467940509b5aa08b6dea8d99456ec19a6e47126bc52' - REQUIRED FLAGS
- Exactly one of these must be specified:
--key=KEY- The SSH public key to describe from the OS Login Profile. Key value can eitherbe the SSH key or the OS Login fingerprint of the key.
--key-file=KEY_FILE- The path to a file containing an SSH public key to describe from the OS LoginProfile. Key value can either be the SSH key or the OS Login fingerprint of thekey.
- Exactly one of these must be specified:
- GCLOUD WIDE FLAGS
- These flags are available to all commands:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$gcloud helpfor details. - NOTES
- This command is currently in beta and might change without notice. Thesevariants are also available:
gcloudcomputeos-loginssh-keysdescribegcloudalphacomputeos-loginssh-keysdescribe
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.