0
0
AWScloud~5 mins

Key pairs for SSH access in AWS - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a key pair in AWS used for?
A key pair in AWS is used to securely connect to virtual machines (EC2 instances) via SSH. It consists of a public key stored by AWS and a private key kept by the user.
Click to reveal answer
beginner
What are the two parts of an SSH key pair?
The two parts are the public key, which AWS stores and uses to verify connections, and the private key, which you keep safe and use to prove your identity when connecting.
Click to reveal answer
beginner
How do you use a key pair to connect to an EC2 instance?
You use an SSH client with the private key file to connect. The client proves your identity using the private key, and AWS verifies it with the stored public key.
Click to reveal answer
beginner
Why should you never share your private key?
Sharing your private key risks unauthorized access to your servers. It is like a password that grants full access, so it must be kept secret and secure.
Click to reveal answer
intermediate
What happens if you lose your private key for an EC2 instance?
If you lose your private key, you cannot connect to the instance via SSH. You must create a new key pair and update the instance or use other recovery methods.
Click to reveal answer
What does AWS store when you create a key pair?
ABoth public and private keys
BThe public key
CThe private key
DNo keys, only a password
Which file do you use to connect to an EC2 instance via SSH?
AKey pair metadata
BPublic key file
CPrivate key file
DInstance configuration file
What should you do if you suspect your private key is compromised?
ACreate a new key pair and update the instance
BDelete the EC2 instance immediately
CShare it with your team
DIgnore it if you still can connect
Can you download the private key again from AWS after creating a key pair?
ANo, only at creation time
BYes, anytime from the console
CYes, but only after 24 hours
DYes, if you request support
What is the main purpose of using SSH key pairs instead of passwords?
ATo speed up connection time
BTo avoid typing passwords
CTo allow multiple users to share one password
DTo provide stronger, more secure authentication
Explain how SSH key pairs work to secure access to AWS EC2 instances.
Think about the two keys and their roles in connection.
You got /4 concepts.
    Describe the steps you would take if you lose your private key for an EC2 instance.
    Focus on recovery and maintaining secure access.
    You got /4 concepts.