All Projects → tomrittervg → decrypt-windows-ec2-passwd

tomrittervg / decrypt-windows-ec2-passwd

Licence: Apache-2.0 License
Amazon EC2 Windows Instances require you to paste in your SSH private key to decrypt the password to the instance. Although they do the decryption locally, in Javascript, I'd still prevent to do it locally... not trusting Amazon.

Programming Languages

python
139335 projects - #7 most used programming language
go
31211 projects - #10 most used programming language
shell
77523 projects
ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to decrypt-windows-ec2-passwd

bitbucket-to-aws
How to deploy a Laravel app from Bitbucket to autoscaled instances at AWS.
Stars: ✭ 14 (-73.08%)
Mutual labels:  ec2
AutoSpotting
Saves up to 90% of AWS EC2 costs by automating the use of spot instances on existing AutoScaling groups. Installs in minutes using CloudFormation or Terraform. Convenient to deploy at scale using StackSets. Uses tagging to avoid launch configuration changes. Automated spot termination handling. Reliable fallback to on-demand instances.
Stars: ✭ 2,058 (+3857.69%)
Mutual labels:  ec2
pingdom-probes-aws-whitelist
A script for syncing Pingdom probe IPv4 addresses to AWS security groups.
Stars: ✭ 27 (-48.08%)
Mutual labels:  ec2
aws-security-test
No description or website provided.
Stars: ✭ 14 (-73.08%)
Mutual labels:  ec2
amazon-ec2-auto-scaling-group-examples
This repository contains code samples, learning activities, and best-practices for scaling and elasticity with Amazon EC2 Auto Scaling groups.
Stars: ✭ 27 (-48.08%)
Mutual labels:  ec2
aws-solutions-architect-associate-certificate
Note to pass the AWS Solutions Architect Associate Exam
Stars: ✭ 58 (+11.54%)
Mutual labels:  ec2
mining-camp
Easy automated configuration and deployment of Minecraft servers on AWS spot instances, featuring automatic backups and restoration using S3.
Stars: ✭ 43 (-17.31%)
Mutual labels:  ec2
infinity
AWS Spot instances for ML
Stars: ✭ 38 (-26.92%)
Mutual labels:  ec2
autoscaling-ec2-gitlab-runners-fargate
Autoscaling EC2 GitLab Runners Spawned by Fargate
Stars: ✭ 20 (-61.54%)
Mutual labels:  ec2
sensu-plugins-aws
This plugin provides native AWS instrumentation for monitoring and metrics collection, including: health and metrics for various AWS services, such as EC2, RDS, ELB, and more, as well as handlers for EC2, SES, and SNS.
Stars: ✭ 79 (+51.92%)
Mutual labels:  ec2
pnzr
pnzr is docker deploy tool for ecs.
Stars: ✭ 31 (-40.38%)
Mutual labels:  ec2
aws-upload
🌈 A delicious CLI tool for uploading files to ec2
Stars: ✭ 39 (-25%)
Mutual labels:  ec2
Aws-Manger-Bot
一个可以管理aws资源的telegram bot
Stars: ✭ 45 (-13.46%)
Mutual labels:  ec2
tech1-temple-aws
AWS Proofs of Concepts repository. No Longer Supported
Stars: ✭ 32 (-38.46%)
Mutual labels:  ec2
installtomcataws
Install tomcat 8.x in AWS (Amazon Linux AMI)
Stars: ✭ 13 (-75%)
Mutual labels:  ec2
terraform-aws-ec2-instance
Terraform module for provisioning a general purpose EC2 host
Stars: ✭ 123 (+136.54%)
Mutual labels:  ec2
cloud-init-example
Example of setting user-data for AWS EC2 with multipart data, tests the order in which various user data formats are run
Stars: ✭ 39 (-25%)
Mutual labels:  ec2
py-spotme
A CLI tool that creates AWS spot instances on the fly
Stars: ✭ 16 (-69.23%)
Mutual labels:  ec2
rabbitmq-peer-discovery-aws
AWS-based peer discovery backend for RabbitMQ 3.7.0+
Stars: ✭ 23 (-55.77%)
Mutual labels:  ec2
md server
Standalone EC2 metadata server to simplify the user of vendor cloud images with standalone kvm/libvirt
Stars: ✭ 36 (-30.77%)
Mutual labels:  ec2

decrypt-windows-ec2-passwd

Amazon EC2 Windows Instances require you to paste in your SSH private key to decrypt the password to the instance. Although they do the decryption locally, in Javascript, I'd still prefer to do it locally... not trusting Amazon.

To Use:

  1. Select your Windows Instance
  2. Actions (or left click) > Instance Settings > Get System Log
  3. Your full encrypted password will be there, copy it
  4. Run It
$ ./decrypt-windows-ec2-passwd.py -p "ercW1ff...9zEw==" -k ~/.ssh/ec2.pem

Password: bG7hKK1Kt;8

Alternatively, you can use the Go version:

$ go run decrypt-windows-ec2-passwd.go ~/.ssh/ec2.pem "ercW1ff...9xEw=="
Encrypted private key. Please enter passphrase:
Decrypted password: bG7hKK1Kt;8

For the convenience of UNIX users there's a simple shell script that wraps OpenSSL tools to decrypt the password. It supports encrypted private keys in several formats including PEM, and can decode the base64 password text from a file, supplied on the command line, or from stdin.

decrypt-windows-ec2-passwd.sh ~/.ssh/id_rsa "ercW1ff...9zEw=="
Enter pass phrase for .ssh/id_rsa:
bG7hKK1Kt;8

Credits:

  • agl for the Go version
  • marcin for making the Python version accept passphrases
  • ringerc for the shell script
  • petemounce for the ruby version
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].