Connect to the Instance Using SSH Client

Step 1: Once the instance is in a running state, click on Instance ID. It will open up a page with all the details of a particular instance. Click on Connect button on the top right-hand side of the page.

Step 2: Open the SSH client on your system. (Terminal for Linux/MacOS, PuTTy for Windows).

Step 3: Go to the folder where you stored your private key file onto the terminal using the following command:

cd <path-to-your-folder>

Step 4: To give execute permission to the secret key file, execute the following command:

chmod 400 <privateKeyFile.pem>

Step 5: Connect to your instance using its public DNS. Copy the command given in the Example section and execute it on your terminal.

Step 6: After running this command, you will be asked “Are you sure you want to continue connecting (yes/no/[fingerprint])?”. Put “yes” and click Enter.

Step 7: You are now successfully connected to your instance on AWS from your local machine using an SSH client.

Deploy Node-Express Server in AWS EC2 Instance

AWS or Amazon Web Services is a leading cloud services provider which gives access to a number of on-demand computational services, databases, storage space, etc.EC2 or Elastic Compute Cloud is an on-demand computing service on the AWS cloud platform. Under computing, it includes all the services a computing device can offer to you along with the flexibility of a virtual environment.

Similar Reads

Steps to Create a New AWS Instance For Deployment

To create a free AWS account refer to Amazon Web Services (AWS) – Free Tier Account Set up....

Connect to the Instance Using SSH Client

Step 1: Once the instance is in a running state, click on Instance ID. It will open up a page with all the details of a particular instance. Click on Connect button on the top right-hand side of the page....

Download the Code For Node Express Server

Step 1: Go to your GitHub repository and copy the HTTP link to clone the repo....

Install Node To Run The Server

Step 1: Use the following command to install curl on the instance....

Install All Dependencies Required to Run The Node Express Server Project

Step 1: Go to the project folder which we cloned from git....

Configure the Security Group For the Port Where Our API is Running

Step 1: Go to your AWS instance and select the Security tab....

Access the Application

Step 1: Go to your instance and copy the public IPv4 address....

FAQs On Node-Express Server to AWS

1. What are the different ways in which the Node.js Express server database can be managed on AWS?...