PuTTY is a common Windows SSH client. With an EC2 instance, a stable public IPv4 (recommended), and a private key, you can open an interactive shell on your Linux instance.
What does SSH with PuTTY mean?
You connect over TCP port 22 with key-based authentication. PuTTY stores host, port, and a .ppk key in a saved session so you reconnect without retyping settings.
When should you use PuTTY?
Use it when you prefer the classic Windows toolkit and .ppk keys. Modern Windows also ships OpenSSH Client (ssh in PowerShell). Browser-based options include EC2 Instance Connect and Session Manager.
What you will configure
Hostname and username from the EC2 Connect panel, a .ppk under SSH Auth credentials, a saved session, and the first host-key acceptance—then a shell as ubuntu or ec2-user.
Key auth proves you hold the private key matching the instance.
No password is normal for official Ubuntu/Amazon Linux AMIs.
You are in the user home (for example /home/ubuntu).
Prefer browser SSH? See EC2 Instance Connect when you cannot open port 22 from your network.
Edge Cases & Pitfalls
Most SSH failures are security group, wrong user, or missing .ppk.
timeout
Connection refused or timeout
Confirm Running state, public IP/DNS, and inbound TCP 22 from your current public IP (VPNs change this often).
key
Server refused our key
Wrong private key, wrong username for the AMI, or key not loaded under SSH → Auth / Credentials.
format
Only a .pem on disk
Convert with PuTTYgen before browsing Auth credentials, or use OpenSSH with the PEM instead.
host
Host key warning after replace
A new instance can legitimately change the fingerprint. Confirm the IP/DNS before Accept.
ip
Saved session fails after stop/start
Ephemeral public IPv4 changed. Attach an Elastic IP and update Host Name once.
auth
No supported authentication methods
Ensure the key matches the public key on the instance and the AMI expects key auth (not password-only).
Remember
Key Takeaways
EC2 Connect first: copy hostname and username from the SSH client tab.
.ppk under Auth: convert .pem with PuTTYgen when needed.
Save a session so you reopen host + key in one click.
Next: FileZilla SFTP or Node.js install on the same instance.
One line: host + AMI user + .ppk on port 22, save the session, Accept once, then login.
Frequently Asked Questions
Open PuTTYgen, choose Load, select your PEM file, then Save private key to write a .ppk file. In PuTTY, under Connection, SSH, Auth, Credentials, browse to that .ppk for authentication.
Official Ubuntu AMIs typically use ubuntu. Many Amazon Linux AMIs use ec2-user. Confirm in the EC2 console Connect dialog under the SSH client tab.
Check that the instance is running, has a public IP or reachable path, and that the security group allows inbound TCP 22 from your current public IP. Stopped instances and wrong security groups are common causes.
No. OpenSSH on macOS, Linux, or Windows can run ssh -i key.pem ubuntu@host. PuTTY is one convenient option on Windows, especially with .ppk keys.
The default is TCP port 22. Change it only if your server listens on a different SSH port and your security group matches.
Accept only when you trust you are reaching the intended instance. After you replace an instance, the host key may change legitimately; investigate unexpected changes before accepting.