Skip to content

Instantly share code, notes, and snippets.

@moutten
Created August 24, 2012 18:48
Show Gist options
  • Save moutten/3454202 to your computer and use it in GitHub Desktop.
Save moutten/3454202 to your computer and use it in GitHub Desktop.
Import ssh keys into Amazon AWS regions using Amazon EC2 API Tools (ZSH only)
# This requires you install the command line tools from Amazon, and setup your Amazon credentials appropriately.
# - http://aws.amazon.com/developertools/351/
for region (us-east-1 us-west-1 us-west-2) ec2-import-keypair $USER -f ~/.ssh/id_rsa.pub --region $region
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment