Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
No Result
View All Result
Home AWS

3 Ways to Connect and SSH into an EC2 Instance – AWS

by Cloudbooklet
4 years ago
in AWS
3 Ways To Connect And Ssh Into An Ec2 Instance - Aws
ShareTweetSendShare
Readers like you help support Cloudbooklet. When you make a purchase using links on our site, we may earn an affiliate commission.

3 Ways to Connect and SSH into an EC2 Instance – AWS. In this guide you are going to learn how to connect to your EC2 instance from your local Linux or Mac or from your Windows machine. 3 Ways to Connect and SSH into an EC2 Instance Connect using a standalone SSH client. Connect […]

ADVERTISEMENT

3 Ways to Connect and SSH into an EC2 Instance – AWS. In this guide you are going to learn how to connect to your EC2 instance from your local Linux or Mac or from your Windows machine.

3 Ways to Connect and SSH into an EC2 Instance

  1. Connect using a standalone SSH client.
  2. Connect using Session Manager.
  3. Connect using browser-based SSH connection.

Prerequisites

  1. A running EC2 Instance. Learn how to create an AWS EC2 instance.
  2. Assigned a Elastic IP to your EC2 Instance.
  3. Pem key file downloaded when you have created your EC2 Instance.
  4. If you are on Windows and try the standalone method, you need PUTTY SSH client to connect to your Instance.

Before you connect to your EC2 instance make sure your IP address is added in the Firewall to allow connections from your IP address or your instance allows connection from anywhere.

Configure Security Rules

Connect using browser-based SSH connection

This is the easiest way to connect yo your Instance instantly. This method don’t require any additional clients installed in your local machine. To use this method,

ADVERTISEMENT

Select your Instance and click the Connect button in your EC2 Dashboard.

You might also like

How To Install Memcached With Apache-Php

How to Install and Configure Memcached with Apache and PHP

2 years ago
Setup Geoip Block Using Apache

How to Setup GeoIP Block using Apache

2 years ago
Browser Based Ssh Connection

In the Connection method choose EC2 Instance Connect.

The username of the AMI will get populated automatically.

ADVERTISEMENT

Now click Connect.

Now a new window will get opened and a connection will get established to your Instance.

ADVERTISEMENT

If you get any errors you need to wait for sometime once your instance is created.

Connect to EC2 Instance from Linux/Mac machines

From your Linux/Mac machine you can simply open your terminal window, use the ssh command to connect to the instance. You specify the private key (.pem) file, the user name for your AMI (in this case it is ubuntu), and the public DNS name for your instance or your Elastic IP address.

ADVERTISEMENT

The connection string looks similar to the one below.

ssh -i "cloudbooklet.pem" ubuntu@ec2-35-171-69-92.compute-1.amazonaws.com

Connect to EC2 Instance from Windows using PUTTY

To SSH to your instance you need to convert your private key (.pem) file using PUTTYgen to ppk format.

ADVERTISEMENT

Open PUTTYgen and Click Load.

Convert Private Key To Ppk

Select the pem key you have downloaded while created your instance.

Once the file is imported, click Save private key to convert it to ppk format.

Save the file.

Launch PUTTY.

Connect Using Putty

In Hostname/IP address enter DNS name or Elastic IP address.

In Port enter default 22.

In the left menu under Connection expand SSH and click Auth.

Browse and select the PPK file you just converted using PUTTYgen.

Now click Open.

This will create an SSH connection to your EC2 Instance.

Become a Certified AWS Professional with this easy to learn course now.

Conclusion

Now you have learned how to connect to your EC2 instance in AWS using standalone method or browser connection..

Thanks for your time. If you face any problem or any feedback, please leave a comment below.

Tags: AWSEC2
Share2Tweet2SendShare
Cloudbooklet

Cloudbooklet

Comments 1

  1. Avatar Of Sujithra Sujithra says:
    1 year ago

    I’m enter the ssh -i but response is not file directly….how to clear this…!?

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Related Posts

Setup Ci/Cd Workflow With Github Actions

Setup CI/CD Workflow with GitHub Actions

2 years ago
How To Install And Setup Csf

How to Secure your Ubuntu server with CSF Firewall

2 years ago
Setup A Load Balanced Wordpress Website On Aws Ec2

Setup a Load Balanced WordPress Website on AWS EC2 – Part 2

3 years ago
Setup A Load Balanced Wordpress Website On Aws Ec2

Setup a Load Balanced WordPress Website on AWS EC2 – Part 1

3 years ago

Follow Us

Trending Articles

Ai Song Generator

10 Best AI Song Generator in 2023 (Free and Paid)

September 19, 2023

AI Statistics and Trends: What You Need to Know in 2023

Top 7 Free Dating Sites for Men in 2023

How to Use ChatGPT to Translate Your Website or Blog

5 Best TikTok Private Account Viewer in 2023

Microsoft Surface Event: The Most Exciting and Innovative Launches and Updates

Popular Articles

Block Youtube Ads

How to Block YouTube Ads on Android TV in 2023 (6 Easy Methods)

September 20, 2023

AI Photo to Sketch: Best Way to Turn Your Photos into Sketches

Kits AI Voice Generator: Create High-Quality Audio Content with Ease

Top 7 AI Dream Interpreter to Understand Your Dreams

Google Duet AI: A Powerful Tool for Gmail, Docs, Sheets, Slides, Meet

10 Best Minecraft Server Hosting Providers in 2023

Subscribe Now

loader

Subscribe to our mailing list to receives daily updates!

Email Address*

Name

Cloudbooklet Logo

Welcome to our technology blog, where we explore the latest advancements in the field of artificial intelligence (AI) and how they are revolutionizing cloud computing. In this blog, we dive into the powerful capabilities of cloud platforms like Google Cloud Platform (GCP), Amazon Web Services (AWS), and Microsoft Azure, and how they are accelerating the adoption and deployment of AI solutions across various industries. Join us on this exciting journey as we explore the endless possibilities of AI and cloud computing.

  • About
  • Contact
  • Disclaimer
  • Privacy Policy

Cloudbooklet © 2023 All rights reserved.

No Result
View All Result
  • News
  • Artificial Intelligence
  • Applications
  • Linux

Cloudbooklet © 2023 All rights reserved.