Front-end Tutorials

Front-end Tutorials

HTMLCSSSassJavaScriptReactJS
CMS Tutorials

CMS Tutorials

WordPress
Tutorials expand

PuTTY Mastery: Connecting to EC2 Instances Made Simple

Posted in AWS Tutorial
Updated on Sep 22, 2024
By Mari Selvan
👁️ 167 - Views
⏳ 4 mins
💬 1 Comment
Putty Mastery: Connecting to EC2 Instances Made Simple

Photo Credit to CodeToFun

🙋 Introduction

PuTTY is a versatile and widely-used terminal emulator that facilitates secure remote connections to various systems. If you're navigating the Amazon Web Services (AWS) ecosystem, mastering PuTTY can make connecting to your EC2 instances a breeze.

In this tutorial, we'll explore the essential steps to make your PuTTY experience seamless when connecting to AWS EC2 instances.

🧠 Understanding Amazon EC2 and Putty

  • PuTTY: PuTTY is a free, open-source terminal emulator that supports various network protocols, including SSH. It is widely used for connecting to remote servers securely.
  • AWS EC2: Amazon Elastic Compute Cloud (EC2) is a web service that provides resizable compute capacity in the cloud. EC2 instances serve as virtual servers in the AWS infrastructure.

📚 Prerequisites

Before diving into PuTTY mastery, ensure you have the following:

  • PuTTY: Download and install PuTTY from the official website: PuTTY Download.
  • AWS Account: Create an AWS account and launch an EC2 instance. Note down the Public DNS or IP address of your EC2 instance.

⚙️ Setting Up Your EC2 Instance

Before connecting with PuTTY, ensure your EC2 instance is up and running. Obtain your instance's public IP address, key pair (.ppk) file, and have the default login credentials. Typically as follows:

  • ec2-user: for Amazon Linux instances.
  • ubuntu: for Amazon Ubuntu instances.

The following image shows that the Amazon Ubuntu EC2 instance is up and running.

ec2 instance running successfully

🛠️ Installing PuTTY

Simply click on this download link to effortlessly install PuTTY and unlock efficient, secure file management on your system.

🔄 Configuring FileZilla for EC2 Connection

Follow the steps below to configure PuTTY for EC2 connection.

  1. Launch PuTTY and enter the Host Name (or IP Address).

    The host name is discoverable in step 8.

    putty hostname

    Photo Credit to CodeToFun

  2. Navigate to "Connection," proceed to SSH, then access Auth, and finally, go to Credentials. From this point, locate and select your specific ppk file for the corresponding EC2 instance.

    putty ppk file

    Photo Credit to CodeToFun

  3. Proceed to the 'session' section, enter a name of your choosing into the input box labeled Saved sessions, and subsequently click on the save button.

    PuTTY save session

    Photo Credit to CodeToFun

  4. Establish a connection to your EC2 instance by selecting the corresponding saved session name and subsequently clicking the open button.

    PuTTY open EC2 instance

    Photo Credit to CodeToFun

  5. The PuTTY terminal will now open; please select the accept button when the PuTTY security alert popup appears.

    Putty Accept

    Photo Credit to CodeToFun

  6. Login by giving the correct user name (go to step 7).

    • ec2-user: for Amazon Linux instances.
    • ubuntu: for Amazon Ubuntu instances.
    PuTTY login

    Photo Credit to CodeToFun

  7. The User Name of your EC2 instance is depicted in the following image.

    Follow these steps to find user name of your EC2 instance:

    1. Navigate to your instances page
    2. Select the desired instance
    3. Click the connect button at the top
    4. Next, click on the SSH client tab
    EC2 login name

    Photo Credit to CodeToFun

  8. The Host Name of your EC2 instance is depicted in the following image.

    Follow these steps to find user name of your EC2 instance:

    1. Navigate to your instances page
    2. Select the desired instance
    3. Click the connect button at the top
    4. Next, click on the SSH client tab
    PuTTY Host Name

    Photo Credit to CodeToFun

Congratulations! You have successfully connected to your EC2 instance in PuTTY.

🚨 Troubleshooting

  • Connection Refused: Ensure your security group allows incoming SSH traffic.
  • Incorrect Key: Verify that you are using the correct private key (.ppk file) for authentication.

🎉 Conclusion

Mastering PuTTY for connecting to AWS EC2 instances empowers you with a secure and efficient way to manage your cloud infrastructure. By following these steps and exploring additional features, you'll streamline your remote server access and enhance your overall AWS experience.

Feel free to explore advanced PuTTY features and customize configurations based on your specific requirements. Happy connecting!

👨‍💻 Join our Community:

To get interesting news and instant updates on Front-End, Back-End, CMS and other Frameworks. Please Join the Telegram Channel:

Author

author
👋 Hey, I'm Mari Selvan

For over eight years, I worked as a full-stack web developer. Now, I have chosen my profession as a full-time blogger at codetofun.com.

Buy me a coffee to make codetofun.com free for everyone.

Buy me a Coffee

Share Your Findings to All

Subscribe
Notify of
guest
1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Mari Selvan
Mari Selvan
9 months ago

If you have any doubts regarding this article (PuTTY Mastery: Connecting to EC2 Instances Made Simple), please comment here. I will help you immediately.

We make use of cookies to improve our user experience. By using this website, you agree with our Cookies Policy
AgreeCookie Policy