Remote access to an Ubuntu LTS with Amazon EC2

awsThis article describes how to establish remote access to an Ubuntu Server, using a Micro instance (lowest cost, approx 2p per hour when I wrote this article).  I used Ubuntu 18.04 LTS for this article.


Security Group

When you created the Ubuntu EC2 instance, you associated it with a Security Group.  You will need to make sure that the Security Group includes access for the SSH protocol.

 

Remote Access

Here's how to remotely access your newly created Ubuntu LTS Server using Secure Shell Protocol (SSH).

  1. Start by logging on to AWS and assume an admin role.
  2. Go to Services > EC2.
  3. Select Instances in the Navigation section.
  4. Right-click on your newly created instance and choose Connect.
  5. Select your Connection method as A stand-alone SSH client.
  6. Open the SSH client of your choice (e.g.Terminal).
  7. Locate your private key file, (eg. ~/.ssh/yourname.pem).
  8. Connect to your instance using instance's public DNS
    1. ssh -i ~/.ssh/yourname.pem This email address is being protected from spambots. You need JavaScript enabled to view it.
  9. Or connect to your instance using your instance's elastic IP address
    1. ssh -i ~/.ssh/yourname.pem This email address is being protected from spambots. You need JavaScript enabled to view it..8
  10. Type Close when you are finished with this dialog box .

 

You will now be logged onto your Ubuntu server as the user ubuntu.  Note that no password is associated with the ubuntu user account, instead the authentication process happens with your private key file only.

 

Thanks for visiting.