gcloud_compute_os-login_ssh-keys_add (1)
NAME
- gcloud compute os-login ssh-keys add - add an SSH public key to an OS Login profile
SYNOPSIS
-
gcloud compute os-login ssh-keys add (--key=KEY | --key-file=KEY_FILE) [--ttl=TTL] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
gcloud compute os-login ssh-keys add will take either a string
REQUIRED FLAGS
-
-
Exactly one of these must be specified:
-
- --key=KEY
-
The SSH public key to add to the OS Login Profile.
- --key-file=KEY_FILE
-
The path to a file containing an SSH public key to add to the OS Login Profile.
-
-
Exactly one of these must be specified:
OPTIONAL 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.
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
These variants are also available:
- $ gcloud alpha compute os-login ssh-keys add $ gcloud beta compute os-login ssh-keys add