EC2 Security - Key Pairs | Scribe

    EC2 Security - Key Pairs

    • Hafeez Baig |
    • 39 steps |
    • 3 minutes
    information ordinal icon

    Refer to the following guide to learn how to use IAM in the cloud\ <https://scribehow.com/shared/Creating_an_IAM_User_and_User_Group_in_AWS_Management_Console__hWNiiXlcRJKFqYZZEJD-cg>

    1

    Sign in to **AWS Management Console** as an **IAM User** **Pre-requisite** - Ensure you have selected the AWS region closest to your location\ For this guide, we will be using us-east-2 (Ohio) as a preferred choice

    2

    Type **EC2** in the search bar and click on **EC2** to view the EC2 Dashboard

    information ordinal icon

    **What is EC2 in AWS?** Amazon EC2 (Elastic Compute Cloud) is a web service provided by Amazon Web Services (AWS) that offers resizable compute capacity in the cloud. It allows users to rent virtual servers, known as instances, and run their applications on them. EC2 instances can be easily scaled up or down to accommodate changing workload demands, and users only pay for the compute capacity they consume.

    3

    On the EC2 dashboard click on **Launch instances** button

    4

    **launch an instance** wizard will open, scroll to the **Key pair** section here you can view and create the EC2 key pairs **Note:** Create and download the Key pair to connect using SSH client later in this lab

    information ordinal icon

    **What is a Key pair?** A KeyPair is a security mechanism used to securely connect to instances via SSH. It consists of a public key stored on the server and a private key stored locally on the user's computer. When an EC2 instance is launched with a KeyPair, the public key is injected into the instance, allowing secure remote access. The private key is used by the user to authenticate and establish a secure connection to the instance.

    5

    To connect an Instance click on the **Instances** from the left bar

    6

    **Instances** wizard will open, select the instance you want to connect

    information ordinal icon

    Refer to this guide to learn how to create an EC2 instance\ <https://scribehow.com/shared/AWS__Creating_your_first_EC2_Instance__Xcu7ZVCdRfWx56YVktKgbQ>

    7

    On the top right corner click on **Connect** button

    8

    **Connect to instance** wizard will open, select the option **Connect using EC2 Instance Connect** to connect directly to the Linux Instance within the browser

    information ordinal icon

    **What is EC2 Instance Connect?** EC2 Instance Connect is a service provided by Amazon Web Services (AWS) that enables secure SSH access to EC2 instances directly from the AWS Management Console or the AWS CLI. It simplifies the process of accessing EC2 instances by eliminating the need to manage SSH keys manually. With EC2 Instance Connect, users can securely connect to their instances using their existing AWS credentials, without the need for managing SSH keys separately.

    information ordinal icon

    Refer to this guide to learn how to connect to an EC2 instance using EC2 Instance Connect <https://scribehow.com/shared/How_to_Connect_to_an_AWS_EC2_Instance__czXjLrH1R1yAIXika6fGbA>

    9

    Click on the **SSH client** tab to connect from an SHH client

    information ordinal icon

    **What is SSH Client?** An SSH client is software that securely connects a user to a remote server or device over a network, enabling secure communication and remote management.

    10

    Search for **puttygen** in any browser Click on the first link with the domain address - [puttygen.com](//puttygen.com)

    information ordinal icon

    **What is PuTTY?** PuTTY is a free and open-source SSH and Telnet client for Windows platforms. It allows users to securely connect to remote servers or devices over a network using the SSH, Telnet, or raw TCP protocols. PuTTY provides a graphical user interface (GUI) for configuring connection settings and managing sessions, making it a popular choice for system administrators and developers who need to access remote systems securely from Windows machines.

    11

    On the **PuTTygen** landing page, click on the **WINDOWS** tab to download the software for windows systems

    12

    Scroll the page and click on the **PuTTY Installation Download page** link