gcloud alpha compute os-login ssh-keys remove

NAME
gcloud alpha compute os-login ssh-keys remove - remove an SSH public key from an OS Login profile
SYNOPSIS
gcloud alpha compute os-login ssh-keys remove(--key=KEY    |--key-file=KEY_FILE)[GCLOUD_WIDE_FLAG]
DESCRIPTION
(ALPHA)gcloud alpha compute os-login ssh-keys removeaccepts either a string containing an SSH public key or a filename for an SSHpublic key and removes 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 remove the key that is stored in/home/user/.ssh/id_rsa.pub,run:
gcloudalphacomputeos-loginssh-keysremove--key-file=/home/user/.ssh/id_rsa.pub

To remove the key with fingerprint'e0d96d6fad35a61a0577f467940509b5aa08b6dea8d99456ec19a6e47126bc52', run:

gcloudalphacomputeos-loginssh-keysremove--key='e0d96d6fad35a61a0577f467940509b5aa08b6dea8d99456ec19a6e47126bc52'

To remove the SSH public key'AAAAB3NzaC1yc2EAAAADAQABAAAB…ZrPg+DZJIwPab2wPlveLh+ut1Lxs5QTR/9QfEa7',run:

gcloudalphacomputeos-loginssh-keysremove--key='AAAAB3NzaC1yc2EAAAADAQABAAAB…ZrPg+DZJIwPab2wPlveLh+ut1Lxs5QTR/9QfEa7'
REQUIRED FLAGS
Exactly one of these must be specified:
--key=KEY
The SSH public key to remove from the OS Login Profile. Key value can either bethe 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 remove from the OS LoginProfile. Key value can either be the SSH key or the OS Login fingerprint of thekey.
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 help for details.

NOTES
This command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist. These variants are also available:
gcloudcomputeos-loginssh-keysremove
gcloudbetacomputeos-loginssh-keysremove

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.