Skip to content

Deploying Linux EC2 Instance & SSH connection. Step-by-step guide to provision an EC2 instance on AWS, configure Linux, and establish SSH connection for remote access.

Notifications You must be signed in to change notification settings

harshartz/AWS-EC2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Deploying a Linux EC2 Instance and Connecting via SSH

In this project, the goal is to launch an EC2 (Elastic Compute Cloud) Linux instance on Amazon Web Services (AWS) and establish a secure connection to it using the command-line interface (CLI) and SSH (Secure Shell) protocol.

Step 1:

Sign in to the AWS Management Console and navigate to the EC2 service

1ss

step 2:

From the EC2 Dashboard go and select Launch instance.

2ss

Step 3:

Choose an Amazon Machine Image (AMI) for the Linux server. You can choose from various Linux distributions available.

3ss

Step 4:

Select the instance type that suits your requirements. Consider the CPU, memory, storage, and network capacity you need.

4ss

Step 5:

In Key pair select Create new key pair. This key pair will be used to securely connect to the instance via SSH.(make sure to download and securely store the private key file (.pem) in a safe location.)

5ss

8ss

Step 6:

Configure Network setting including subnet, security group, etc. If you're not sure, you can use the default settings.(Allow SSH (port 22) access. By default, incoming SSH traffic is blocked for security reasons.)

6ss

Step 7:

Configure the storage options for your instance. You can specify the size of the root volume and add any additional volumes if needed. Review all the configuration details you've set for the instance. If everything looks good, click on "Launch" to start the instance.

7ss

Step 8:

Once the instance is running, you can connect to it using the CLI. Open your terminal or command prompt and navigate to the directory where your key pair file is stored.

10sss

Step 9:

Go to the Ec2 instance. At the bottom of the screen, you will see a section called "Connect". Click on the "Connect" button. In the connection dialog, you will see different options for connecting to your instance, such as EC2 Instance Connect, Session Manager, and SSH. Select the "SSH client" tab. Here, you will find the SSH command that you can copy and paste into your CLI. and then press Enter to connect to your EC2 instance.

9ss

10ss

11ss

About

Deploying Linux EC2 Instance & SSH connection. Step-by-step guide to provision an EC2 instance on AWS, configure Linux, and establish SSH connection for remote access.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published