Skip to content

Instantly share code, notes, and snippets.

@cbroberg
Forked from mince27/create-key-pair.sh
Created March 6, 2018 19:39
Show Gist options
  • Save cbroberg/bc53e18fc0d9a0c8e5832c392572ab1a to your computer and use it in GitHub Desktop.
Save cbroberg/bc53e18fc0d9a0c8e5832c392572ab1a to your computer and use it in GitHub Desktop.
AWS Lightsail Create Key Pair
aws lightsail create-key-pair \
--key-pair-name 'lightsail_demo' \
--query 'privateKeyBase64' \
--output text > 'demo.key'
chmod 700 "demo.key"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment