How to connect using SSH in AWS Lightsail?

How to connect using SSH in AWS Lightsail?

How to connect using SSH in AWS Lightsail?

Hello Everyone

Welcome to CloudAffaire and this is Debjeet.

You can connect to an AWS Lightsail instance over SSH using your browser or external tools like Putty or MobaXterm or directly through command line. In order to connect to the Lightsail instance using external tool or command line, the SSH port (22) should be opened (by default its opened) and you should have the SSH keys and Public IP address of your Lightsail instance. When you create a new Lightsail instance, you can either use the AWS Lightsail provided default SSH keys or upload and use your own SSH keys.

How to connect using SSH in AWS Lightsail?

Prerequisites:

  • A Lightsail Instance
  • SSH keys for Lightsail instance (if you are using non-default keys)
  • Public IP address of your Lightsail instance

Step 1: Login to AWS management console.

https://aws.amazon.com/

Step 2: Navigate to Lightsail console.

How to connect using SSH in AWS Lightsail?

Step 3: SSH into your AWS Lightsail instance.

Option 1: Connect to Lightsail using your browser.

The simplest way to connect to your Lightsail instance is by using your browser. Connect to your Lightsail WordPress instance either through browser by clicking on the “command” icon.

How to connect using SSH in AWS Lightsail?

Option 2: Connect to Lightsail using external tools like Putty or MobaExterm.

Get the location of your SSH key in your local system. If you are using the default key and not downloaded the key during your instance creation. Follow below steps to download the default SSH key for your AWS Lightsail.

In your Lightsail portal, click on the “Account” and then select the “SSK keys” tab. Click on the “Download” for the region where your Lightsail instance is hosted to download the default SSH key.

How to connect using SSH in AWS Lightsail?

Get the Public IP address and username of your Lightsail instance.

In your Lightsail portal, click on your Lightsail instance that you want to connect and then click on the “Connect” tab. Copy the Public IP address and user name.

How to connect using SSH in AWS Lightsail?

Install Putty or MobaXterm

Open Putty or MobaExterm or any other tool that you are using and provide your SSH keys, Public IP address and Username to connect to your AWS Lightsail instance. For example, below is a screenshot for MobaExterm connection:

How to connect using SSH in AWS Lightsail?

Option 3: Using command line

Hope you have enjoyed this article. To get more details on Lightsail, please refer below official documentation.

https://lightsail.aws.amazon.com/ls/docs/en_us/all

Leave a Reply

Close Menu