{
	"id": "94ed49ec-e3d9-4720-a6dd-c4840585071c",
	"created_at": "2026-04-29T08:21:29.319153Z",
	"updated_at": "2026-04-29T10:42:06.548899Z",
	"deleted_at": null,
	"sha1_hash": "1143b9b149f56b41ac72adf7007eed3f55f4fd04",
	"title": "gcloud compute os-login ssh-keys add",
	"llm_title": "",
	"authors": "",
	"file_creation_date": "0001-01-01T00:00:00Z",
	"file_modification_date": "0001-01-01T00:00:00Z",
	"file_size": 70495,
	"plain_text": "gcloud compute os-login ssh-keys add\r\nArchived: 2026-04-29 07:32:01 UTC\r\ngcloud compute os-login ssh-keys add Stay organized with collections Save and\r\ncategorize content based on your preferences.\r\nNAME\r\ngcloud compute os-login ssh-keys add - add an SSH public key to an OS Login profile\r\nSYNOPSIS\r\ngcloud compute os-login ssh-keys add ( --key = KEY     | --key-file = KEY_FILE ) [ --ttl = TTL ]\r\n[ GCLOUD_WIDE_FLAG … ]\r\nDESCRIPTION\r\ngcloud compute os-login ssh-keys add accepts either a string containing an SSH public key or a\r\nfilename for an SSH public key and adds that key to the user's OS Login profile.\r\nEXAMPLES\r\nTo add the key in /home/user/.ssh/id_rsa.pub to your OS Login profile, run:\r\nSee more code actions.\r\ngcloud compute os-login ssh-keys add --key-file=/home/user/.ssh/id_rsa.pub\r\nTo add the same key, but with a one year expiration time, run:\r\nSee more code actions.\r\ngcloud compute os-login ssh-keys add --key-file=/home/user/.ssh/id_rsa.pub --ttl=1y\r\nTo add a key not stored in a file, run:\r\ngcloud compute os-login ssh-keys add --key='ssh-rsa AAAAB3NzaC1yc2EAAA…MTg+InRG47+/O4/uWEOy6gIQEF\r\n user@example.com'\r\nREQUIRED FLAGS\r\nExactly one of these must be specified:\r\n--key = KEY\r\nThe SSH public key to add to the OS Login Profile.\r\n--key-file = KEY_FILE\r\nThe path to a file containing an SSH public key to add to the OS Login Profile.\r\nOPTIONAL FLAGS\r\n--ttl = TTL\r\nhttps://cloud.google.com/sdk/gcloud/reference/compute/os-login/ssh-keys/add\r\nPage 1 of 2\n\nThe amount of time before the SSH key expires. For example, specifying 30m will set the\r\nexpiration time on the SSH key for 30 minutes from the current time. A value of 0 will result in no\r\nexpiration time. See $ gcloud topic datetimes for information on duration formats.\r\nGCLOUD WIDE FLAGS\r\nThese flags are available to all commands: --access-token-file , --account , --billing-project , --\r\nconfiguration , --flags-file , --flatten , --format , --help , --impersonate-service-account ,\r\n--log-http , --project , --quiet , --trace-token , --user-output-enabled , --verbosity .\r\nRun $ gcloud help for details.\r\nNOTES\r\nThese variants are also available:\r\ngcloud alpha compute os-login ssh-keys add\r\ngcloud beta compute os-login ssh-keys add\r\nExcept as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0\r\nLicense, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site\r\nPolicies. Java is a registered trademark of Oracle and/or its affiliates.\r\nLast updated 2025-05-07 UTC.\r\nSource: https://cloud.google.com/sdk/gcloud/reference/compute/os-login/ssh-keys/add\r\nhttps://cloud.google.com/sdk/gcloud/reference/compute/os-login/ssh-keys/add\r\nPage 2 of 2",
	"extraction_quality": 1,
	"language": "EN",
	"sources": [
		"MITRE"
	],
	"origins": [
		"web"
	],
	"references": [
		"https://cloud.google.com/sdk/gcloud/reference/compute/os-login/ssh-keys/add"
	],
	"report_names": [
		"add"
	],
	"threat_actors": [],
	"ts_created_at": 1777450889,
	"ts_updated_at": 1777459326,
	"ts_creation_date": 0,
	"ts_modification_date": 0,
	"files": {
		"pdf": "https://archive.orkl.eu/1143b9b149f56b41ac72adf7007eed3f55f4fd04.pdf",
		"text": "https://archive.orkl.eu/1143b9b149f56b41ac72adf7007eed3f55f4fd04.txt",
		"img": "https://archive.orkl.eu/1143b9b149f56b41ac72adf7007eed3f55f4fd04.jpg"
	}
}