Skip to main content

Command Palette

Search for a command to run...

Amazon Elastic Compute Cloud

Published
2 min read
Amazon Elastic Compute Cloud
U

🚀 Hi everyone! I'm Utkarsh Gupta, IAM Consultant. I am very passionate for all things DevOps. Right now, I'm learning and working on some cool projects and I can't wait to share what I'm learning with you all!

🛠️ Here's what's in my toolbox:

Linux Docker Kubernetes Jenkins AWS Python Prometheus Grafana Ansible Terraform

Join me as we explore AWS DevOps together. Let's learn and grow together in this ever-changing field!

🤝 Feel free to connect with me for: Sharing experiences Friendly chats Learning together

Follow my journey on Hashnode and LinkedIn for daily updates. Let's dive into the world of DevOps together! 🚀

#DevOps #AWS #DevOpsJourney #90DaysOfDevOps

What is EC2?

AWS EC2 instance is a virtual server in the cloud that provides you with computing resources to run your applications. It offers flexibility, scalability, and remote accessibility, making it a fundamental component of cloud-based infrastructure.

How to Connect an EC2 Instance Using SSH client.

Understanding SSH

SSH is a network protocol that provides a secure way to access a remote server. It’s widely used for managing systems and applications remotely.

Step-by-Step Guide to Connect to EC2 Instance Using SSH

Step 1: Retrieve Your Instance Information

First, log in to your AWS Management Console and navigate to the EC2 dashboard.

Step 2:

You’ll be redirected to the EC2 Dashboard, where you need to click on the “Launch Instance” button.

Step 3:

Next, a new page will open where you’ll need to enter a few details.

  1. Enter the Name of instance.

  2. Select the Amazon Linux OS Image.

  3. Select the instance type as t2.micro free tier.

  4. Key Pair — We can select the Existing Key Pair name or we can create a key pair.

  5. Create a security group or select an existing one.

    In the below screen-shot we can see how the key pair(login) is created-

    Step 4:

    Now, proceed by clicking on the ‘Launch instance’ button. Your EC2 instance will then be created.

    “Now, under the ‘Instances’ option, you will be able to see the instance that you have just created.”

    Step 5:

    Click on connect and go to SSH Client.

    Step 6:

    Then copy the command written in example.

    Now open Window Powershell in your system and paste the command you have copied.

    Note: PS C:\Users\utkar\Desktop\git bash\aws> Under this folder we downloaded the "utkarsh-key.pem" key pair, then we executed the SSH command.

    Step 7:

    Now ,You are connected to your Linux server.

    Type: sudo apt-get update

    Congratulations! 🎉 You have successfully established a connection to the EC2 instance.

    If you encounter any issues or need further assistance, feel free to ask for help.

More from this blog

Utkarsh Gupta's blog

27 posts