EC2-GET-PASSWORD(1)

πŸ“¦ version 1.6.14.1, in ubuntu jammy, ubuntu noble

πŸ¦‹ EC2-GET-PASSWORD πŸ’–

okay bestie, so this is ec2-get-password, aka ec2gpass, from the EC2 API command line tools β€” a lil user command that goes and fetches the admin password for a Windows instance. yeah. we're doing Windows today. slay. πŸ‘‘


✨ SYNOPSIS ✨

ec2gpass ([ec2-get-password])
ec2gpass [GENERAL OPTIONS] INSTANCE -k KEYFILE

πŸŽ€ GENERAL NOTES πŸŽ€

okay real talk, this one's important and it's giving "small print but make it fashion":

  • Any command option/parameter may be passed a value of - to indicate that values for that option should be read from stdin.

that's it. that's the note. stdin girlies rise up 🫢


πŸ’… DESCRIPTION πŸ’…

So what does it do? It fetches and decrypts the Administrator password for a Windows instance. no cap.

Here's the vibe: the password is encrypted with the private key used when launching the instance. The result is Base64-encoded and emitted to the console output when the instance boots. This command retrieves the last such data emitted by the instance and decrypts the password. so like, it's not guessing β€” it's grabbing what the instance already spat out and unlocking it. πŸ”“βœ¨

And the KEYFILE parameter? That's a file containing the unencrypted PEM encoded PKCS#8 private key portion of the keypair specified when launching the instance. keep that file safe bestie, it's literally the whole point. πŸ—οΈ


🌸 GENERAL OPTIONS 🌸

one bullet per option, exactly as promised, no skipping, no summarising, we don't do that here:

  • -O, --aws-access-key KEY β€” AWS Access Key ID. Defaults to the value of the AWS_ACCESS_KEY environment variable (if set).
  • -W, --aws-secret-key KEY β€” AWS Secret Access Key. Defaults to the value of the AWS_SECRET_KEY environment variable (if set).
  • -T, --security-token TOKEN β€” AWS delegation token. Defaults to the value of the AWS_DELEGATION_TOKEN environment variable (if set).
  • -K, --private-key KEY β€” [DEPRECATED] Specify KEY as the private key to use. Defaults to the value of the EC2_PRIVATE_KEY environment variable (if set). Overrides the default.
  • -C, --cert CERT β€” [DEPRECATED] Specify CERT as the X509 certificate to use. Defaults to the value of the EC2_CERT environment variable (if set). Overrides the default.
  • -U, --url URL β€” Specify URL as the web service URL to use. Defaults to the value of 'https://ec2.amazonaws.com' (us-east-1) or to that of the EC2_URL environment variable (if set). Overrides the default.
  • --region REGION β€” Specify REGION as the web service region to use. This option will override the URL specified by the "-U URL" option and EC2_URL environment variable. This option defaults to the region specified by the EC2_URL environment variable or us-east-1 if this environment variable is not set.
  • -D, --auth-dry-run β€” Check if you can perform the requested action rather than actually performing it.
  • -v, --verbose β€” Verbose output.
  • -?, --help β€” Display this help.
  • -H, --headers β€” Display column headers.
  • --debug β€” Display additional debugging information.
  • --show-empty-fields β€” Indicate empty fields.
  • --hide-tags β€” Do not display tags for tagged resources.
  • --connection-timeout TIMEOUT β€” Specify a connection timeout TIMEOUT (in seconds).
  • --request-timeout TIMEOUT β€” Specify a request timeout TIMEOUT (in seconds).
⚠️ heads up queen: -K/--private-key and -C/--cert are marked [DEPRECATED]. they still work, but the manpage is telling you they're old news. πŸ’€

🧚 SPECIFIC OPTIONS 🧚

the one that's actually about this command, the main character of the option list:

  • -k, --priv-launch-key β€” file containing the unencrypted PEM encoded PKCS#8 private key portion of the keypair specified when launching the instance.

this is the -k KEYFILE from the synopsis. it's giving "you literally cannot do this without me." πŸ’–


🌈 SEE ALSO 🌈

go read the docs bestie, iykyk:


okay that's the whole page, you ate it, you're obsessed, periodt. πŸŽ€

this lil masterpiece is brought to you by the EC2 API command line tools, version 1.6.14.1, api=2014-05-01 β€” so if you're out here living in 2014-era EC2 land, this one's for you. mwah. πŸ’œβœ¨

πŸ“¦ where this page comes from