{
	"id": "4709c45c-7402-40da-a6e7-12494c4f31e7",
	"created_at": "2026-04-06T02:13:13.405692Z",
	"updated_at": "2026-04-10T13:12:38.366417Z",
	"deleted_at": null,
	"sha1_hash": "fd80d18f3c4be4ca9f2fee1ac0a99959ae188401",
	"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": 66409,
	"plain_text": "gcloud compute os-login ssh-keys add\r\nArchived: 2026-04-06 01:31:34 UTC\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\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\nhttps://cloud.google.com/sdk/gcloud/reference/compute/os-login/ssh-keys/add\r\nPage 1 of 2\n\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\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": 1775441593,
	"ts_updated_at": 1775826758,
	"ts_creation_date": 0,
	"ts_modification_date": 0,
	"files": {
		"pdf": "https://archive.orkl.eu/fd80d18f3c4be4ca9f2fee1ac0a99959ae188401.pdf",
		"text": "https://archive.orkl.eu/fd80d18f3c4be4ca9f2fee1ac0a99959ae188401.txt",
		"img": "https://archive.orkl.eu/fd80d18f3c4be4ca9f2fee1ac0a99959ae188401.jpg"
	}
}