DEV Community

Cover image for Managing AWS EC2 Instances Securely and Easily Using SSH and PuTTY on Windows PC
Mary Wanjiru
Mary Wanjiru

Posted on

3

Managing AWS EC2 Instances Securely and Easily Using SSH and PuTTY on Windows PC

As I learn more about cloud computing and AWS, I came across EC2 (Elastic Compute Cloud) – a service that enables me run virtual servers in the cloud. These instances gave me full control over how to set them up and access them.

To connect to an EC2 instance securely, I used SSH (Secure Shell). Since I’m on a Windows machine I used a free tool called PuTTY, which helps me manage my instances both safely and conveniently.

What is SSH and Why Am I Using It?

SSH (Secure Shell) is a secure way to connect to a remote device like a server. Instead of typing in a password I used a key pair – a public key stored on the server and a private key saved safely on my computer.

How to connect to EC2 Using PuTTY

To connect to AWS instance I followed below steps using PuTTY on Windows.

What I Used:

  1. A running EC2 instance on AWS
  2. A .ppt key pair that I downloaded when launching the instance
  3. PuTTY installed on my PC.

Connecting with PuTTY

  1. I opened PuTTY.
  2. In the Host Name field, I entered the public IP of my EC2 instance (from the AWS console).
  3. Under Connection → SSH → Auth, I browsed and selected my .ppk file.
  4. I clicked Open to start the session.
  5. When prompted for a username, I used ec2-user for Amazon Linux

Why PuTTY is Convenient on Windows

PuTTY is lightweight and easy to use. It helps me:

  1. Save sessions for quick connections
  2. Use terminal commands like I would on a Linux server

What I’ve Learned

Learning how to connect to AWS EC2 instances using SSH and PuTTY has been a valuable experience. It helped me understand the basics of secure server management and gives me hands-on practice in cloud computing.

MongoDB Atlas runs apps anywhere. Try it now.

MongoDB Atlas runs apps anywhere. Try it now.

MongoDB Atlas lets you build and run modern apps anywhere—across AWS, Azure, and Google Cloud. With availability in 115+ regions, deploy near users, meet compliance, and scale confidently worldwide.

Start Free

Top comments (2)

Collapse
 
kimruto68 profile image
Edwin Ruto

Good job. Keep on the good work.

Collapse
 
wanjiru_ndirangu_ecb301d0 profile image
Mary Wanjiru

Thanks Edwin

AWS Q Developer image

Build your favorite retro game with Amazon Q Developer CLI in the Challenge & win a T-shirt!

Feeling nostalgic? Build Games Challenge is your chance to recreate your favorite retro arcade style game using Amazon Q Developer’s agentic coding experience in the command line interface, Q Developer CLI.

Participate Now

👋 Kindness is contagious

Discover fresh viewpoints in this insightful post, supported by our vibrant DEV Community. Every developer’s experience matters—add your thoughts and help us grow together.

A simple “thank you” can uplift the author and spark new discussions—leave yours below!

On DEV, knowledge-sharing connects us and drives innovation. Found this useful? A quick note of appreciation makes a real impact.

Okay