Skip to content

Instantly share code, notes, and snippets.

@lengerfulluse
Created September 1, 2016 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lengerfulluse/72a2d6556f1528f846ae4c390c7fefa5 to your computer and use it in GitHub Desktop.
Save lengerfulluse/72a2d6556f1528f846ae4c390c7fefa5 to your computer and use it in GitHub Desktop.
common used aws commands collection
# change pem file mode
chmod 400 /path/my-key-pair.pem
# use ssh to login ec2 instance.
ssh -i /path/my-key-pair.pem ec2-user@ec2-198-51-100-1.compute-1.amazonaws.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment