Skip to content

Instantly share code, notes, and snippets.

@zanedeg
Last active August 29, 2015 14:05
Show Gist options
  • Save zanedeg/a4765f800c629feedf21 to your computer and use it in GitHub Desktop.
Save zanedeg/a4765f800c629feedf21 to your computer and use it in GitHub Desktop.
Generate and upload a new keypair to AWS
ssh-keygen -q -t rsa -f ~/.ssh/[keyname -N '' -C [keyname]
aws ec2 import-key-pair --key-name [keyname] --public-key-material file://~/.ssh/[keyname].pub
# Stolen from https://github.com/deis/deis/tree/master/contrib/ec2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment