gcloud_alpha_compute_os-login_ssh-keys_update (1)
NAME
- gcloud alpha compute os-login ssh-keys update - update an SSH public key in an OS Login profile
SYNOPSIS
-
gcloud alpha compute os-login ssh-keys update --ttl=TTL (--key=KEY | --key-file=KEY_FILE) [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) gcloud alpha compute os-login ssh-keys update will take
REQUIRED FLAGS
-
- --ttl=TTL
-
The amount of time before the SSH key expires. For example, specifying
30m will set the expiration time on the SSH key for 30 minutes from
the current time. A value of 0 will result in no expiration time. See $ gcloud
topic datetimes for information on duration formats.
-
Exactly one of these must be specified:
-
- --key=KEY
-
The SSH public key to update the OS Login Profile. Key value can either be 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 update the OS Login Profile.
Key value can either be the SSH key or the OS Login fingerprint of the key.
-
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
NOTES
This command is currently in ALPHA and may change without notice. If this command fails with API permission errors despite specifying the right project, you will have to apply for early access and have your projects registered on the API whitelist to use it. To do so, contact Support at cloud.google.com/support These variants are also available:
- $ gcloud compute os-login ssh-keys update $ gcloud beta compute os-login ssh-keys update