gcloud compute os-login ssh-keys describe (--key=KEY | --key-file=KEY_FILE) [GCLOUD_WIDE_FLAG …]
gcloud compute os-login ssh-keys describe accepts either a string
containing an SSH Public Key or a filename for an SSH Public key and displays
that key from the user's OS Login Profile. The key value used can either be the
full SSH key or the OS Login fingerprint for that key.
/home/user/.ssh/id_rsa.pub, run:
gcloud compute os-login ssh-keys describe --key-file=/home/user/.ssh/id_rsa.pubTo show all of the information about the key with a fingerprint of 'e0d96d6fad35a61a0577f467940509b5aa08b6dea8d99456ec19a6e47126bc52', run:
gcloud compute os-login ssh-keys describe --key='e0d96d6fad35a61a0577f467940509b5aa08b6dea8d99456ec19a6e47126bc52'--key=KEY--key-file=KEY_FILE--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 help for details.
gcloud alpha compute os-login ssh-keys describegcloud beta compute os-login ssh-keys describe
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-27 UTC.