0
0
AWScloud~5 mins

Connecting to EC2 instances in AWS - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the primary method to securely connect to an EC2 instance running Linux?
Using SSH (Secure Shell) with a private key file (.pem) that matches the public key set during instance creation.
Click to reveal answer
beginner
What file permission should the private key (.pem) have before using it to connect to an EC2 instance?
The private key file should have permissions set to 400 (read-only for the owner) to ensure security and allow SSH to use it.
Click to reveal answer
beginner
Which protocol and port must be allowed in the EC2 security group to connect via SSH?
Protocol: TCP, Port: 22 must be allowed in the security group inbound rules to enable SSH connections.
Click to reveal answer
beginner
How do you connect to a Windows EC2 instance remotely?
Use Remote Desktop Protocol (RDP) with the instance's public IP and the Administrator password retrieved from the EC2 console using the private key.
Click to reveal answer
beginner
Why is it important to use a key pair when launching an EC2 instance?
The key pair provides a secure way to authenticate your access to the instance without using passwords, enhancing security.
Click to reveal answer
Which command is used to connect to a Linux EC2 instance using SSH?
Ardp -i mykey.pem ec2-user@ec2-public-ip
Bssh -i mykey.pem ec2-user@ec2-public-ip
Cconnect -key mykey.pem ec2-user@ec2-public-ip
Dssh ec2-user@localhost
What port must be open in the security group to allow SSH access?
A3389
B80
C22
D443
How do you retrieve the Administrator password for a Windows EC2 instance?
ADecrypt it using your private key in the EC2 console.
BYou set it during instance launch.
CUse the default password 'admin'.
DIt is emailed to you automatically.
What is the recommended permission setting for your private key file before connecting?
A777
B644
C000
D400
Which protocol is used to connect to a Windows EC2 instance remotely?
ARDP
BFTP
CSSH
DHTTP
Explain the steps to connect to a Linux EC2 instance from your local computer.
Think about the command and network settings needed.
You got /5 concepts.
    Describe how to connect to a Windows EC2 instance and retrieve the password.
    Focus on password retrieval and protocol used.
    You got /4 concepts.