Close Menu
Technoracle
    Facebook X (Twitter) Instagram
    Facebook X (Twitter) Instagram
    TechnoracleTechnoracle
    • Home
    • AWS
      • EC2
      • Lightsail
      • RDS
      • S3
    • Ubuntu
      • Ubuntu 20.04
      • Ubuntu 22.04
    • AI Tools
    • Web Hosting
    • WordPress
    • Tech News
    Technoracle
    Home - AWS - How to SSH into EC2 Instance [Quick Steps]
    AWS

    How to SSH into EC2 Instance [Quick Steps]

    Rajesh ShivamBy Rajesh ShivamMarch 6, 2022No Comments2 Mins Read
    SSH into EC2
    SSH into EC2

    I am assuming you already launched the AWS instance. Now, you may need to SSH into EC2 instance to configure your server. If you are new to AWS, you may need help connecting the EC2 instance. In this article, I am going to explain how to SSH into EC2 instances from Linux as well as from windows. So, let’s get started.

    Page Contents

    Toggle
    • How to SSH into AWS EC2 Instance
      • Requirements
      • Connect EC2 Instance
        • SSH EC2 instance from Ubuntu or any Linux based Operating System.
        • SSH EC2 instance from Windows
      • Conclusion

    How to SSH into AWS EC2 Instance

    Now, let’s take a look, how you can login via SSH from both Linux and Windows system.

    Requirements

    • Instance Public IP address.
    • SSH Key pair (PEM) file. PPK file for windows users only.
    • SSH username.

    Connect EC2 Instance

    You can access EC2 instance via AWS console or you can use SSH client to connect. If you are windows user, you have to use PuTTY to connect instance.

    SSH EC2 instance from Ubuntu or any Linux based Operating System.

    To access an EC2 instance from Ubuntu, log in to AWS Console and navigate to the EC2 dashboard. Under the EC2 instance dashboard, copy IP address from the instance.

    Now, open terminal and change your server key pair permission need to change. To change the permission use following command.

    $ chmod 400 Server_Key.pem

    After changing the PEM file permission use following command to connect EC2 instance via SSH.

    $ ssh -i Server_key_location ubuntu@Server_IP

    As I am using Ubuntu for demonstration, my SSH user is ubuntu. Below are the users for SSH.

    Instance AMISSH Username
    Ubuntuubuntu
    Amazon Linuxec2-user
    Centosroot
    Bitnami bitnami

    SSH EC2 instance from Windows

    To access an EC2 instance from a Windows machine, you have to convert pem to ppk. After converting the server key SSH into EC2 instance using PuTTY.

    Conclusion

    In this article, I have explained how to SSH into EC2 instances. If you have any doubt, feel free to comment below. Also, you can join our elite Facebook group to get direct help from me. If you like this article, please share this article on your social media handle.

    aws tips SSH into EC2 instance ssh using PuTTY
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email Reddit
    Previous ArticleHow to Install Webmin on AWS EC2 Ubuntu Instance [Latest Guide]
    Next Article How to Install NodeJs on Amazon Linux Easily
    Rajesh Shivam
    • LinkedIn

    Rajesh Shivam is a seasoned professional with expertise in AWS and Linux System Administration. With over 10 years of freelancing experience, he brings a wealth of knowledge to the table. Rajesh has a strong passion for technology and stays connected with the latest happenings in the field. His dedication and expertise make him a trusted resource for all things tech-related.

    Related Posts

    Convert PEM to PPK file
    AWS

    Convert PEM to PPK File on Windows & Linux [2025 Guide]

    Read More
    What is Elastic IP and Its Pricing
    AWS

    What is Elastic IP and Its Pricing in AWS

    Read More
    Install Git on Amazon Linux 2
    AWS

    How to Install Git on Amazon Linux 2 Easily

    Read More
    Add A Comment
    Leave A Reply Cancel Reply

    linux commands every user should know in 2025

    25 Must-Know Linux Commands Every User Should Master in 2025

    April 10, 2025
    TeamViewer and Ubuntu logos on gradient background – banner for how to install TeamViewer on Ubuntu 24.04 tutorial

    How to Install TeamViewer on Ubuntu 24.04 [Fast & Easy Steps]

    April 10, 2025
    Troubleshooting ‘Permission Denied (publickey)’ SSH error on a Linux server using secure terminal access

    Fix ‘Permission Denied (publickey)’ SSH Error on Linux [Step-by-Step Guide]

    April 8, 2025
    Blog banner showing Ubuntu logo, coding laptop, and icons for VS Code, Docker, and Git with the title 'Perfect Dev Setup in Ubuntu 24.04 – Step-by-step guide for developers' on a dark tech-themed background.

    How to Set Up the Perfect Development Environment on Ubuntu 24.04

    April 8, 2025

    Subscribe to Blog

    Enter your email address to subscribe to
    this blog and receive notifications of new posts by email.

    Facebook X (Twitter) Instagram Pinterest
    • Sitemap
    • Privacy Policy
    • Disclaimer
    • Term of Services
    © 2025 Technoracle

    Type above and press Enter to search. Press Esc to cancel.

    Click to Copy