If you're using Windows 10, you don't need PuTTY to SSH into an AWS EC2 instance. Windows 10 includes a built-in SSH client, allowing you to connect directly using PowerShell or Command Prompt. This guide will walk you through setting up and troubleshooting SSH access.
Open PowerShell (Press Win + X → Select PowerShell).
Type:
ssh
Alternatively, open Command Prompt (cmd) and type:
ssh
If SSH is installed, you're good to go.
Open PowerShell.
Move to the directory where your .pem file is stored (e.g., Desktop):
cd .\Desktop
Verify the file is present by listing files:
You should see EC2Tutorial.pem (or the name of your key file).
```powershell
ls
```
Use the following command format:
ssh -i "EC2Tutorial.pem" ec2-user@your-instance-public-ip
Replace your-instance-public-ip with your EC2 instance’s public IPv4 address.
Example:
ssh -i "EC2Tutorial.pem" [email protected]
First-time connection warning:
You might see:
The authenticity of host ... can't be established. Do you want to continue? (yes/no)
yes and press Enter.You're now inside the EC2 instance! 🎉