Cheat sheet
Command Reference
Every command from the labs in one place, grouped by tool. 3 commands across 2 tools, and it grows with every post.
Linux
ssh
-
ssh -i <name>.pem <user>@<server-ip>Connect to an instance using the private key (ec2-user on Amazon Linux, ubuntu on Ubuntu).
AWS CLI
aws ec2
-
aws ec2 create-key-pair --key-name <name> --key-type rsa --key-format pem --query KeyMaterial --output text > <name>.pemCreate a key pair and save the private key to a .pem file (shown once only).
-
aws ec2 describe-key-pairs --key-names <name>Confirm the key pair exists and see its ID, type and fingerprint.
No commands match that search.