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.