AWS Certified Cloud Practitioner / EC2 - Elastic Compute Cloud

SSH Overview

πŸ”— Connecting to EC2 Instances

To manage an EC2 instance, you need a way to securely access it. AWS gives you a few options depending on your OS β€” think of it like remote-desktopping into a computer, just different tools for the job.


1️⃣ SSH β€” the standard method

  • Built into Mac & Linux terminals natively

  • Also built into Windows 10+

  • Uses key pairs (.pem) for authentication

  • Command-line based, so it requires some comfort with CLI

2️⃣ PuTTY β€” for older Windows

  • Needed on Windows versions before 10 (no native SSH client)

  • Does the same job as SSH, just a separate installed tool

  • Uses .ppk key format instead of .pem

3️⃣ EC2 Instance Connect β€” browser-based

  • No installation, works straight from the AWS Console

  • Works on any OS (Mac, Linux, all Windows versions)

  • Best for beginners β€” simplest option

  • ⚠️ Limitation: currently only supports Amazon Linux 2


4️⃣ Which one should you use?

Your OS

Recommended method

Mac / Linux

SSH

Windows 10+

SSH or EC2 Instance Connect

Windows < 10

PuTTY or EC2 Instance Connect

This course primarily uses EC2 Instance Connect for simplicity.


5️⃣ Common SSH problems

If a connection fails, check these first:

  • Port 22 blocked in the security group

  • Wrong key / bad file permissions

  • Typos in the SSH command

  • Wrong username (e.g. should be ec2-user)

If stuck, fall back to EC2 Instance Connect.


6️⃣ Key takeaways

  • βœ… There are multiple ways to connect β€” pick based on your OS

  • βœ… SSH is the standard, but trickiest for beginners

  • βœ… PuTTY = SSH equivalent for old Windows

  • βœ… EC2 Instance Connect = easiest, browser-based, no setup

  • βœ… You only need one working method, not all three


πŸ’‘ Exam tip

Keyword in question

Think

"browser-based access"

EC2 Instance Connect

"secure CLI access to Linux"

SSH

"Windows + SSH alternative"

PuTTY