How to connect to Amazon EC2 from Windows or iOS

If you have just started using Amazon EC2 and now want to connect to your ec2 server from your computer. 

There are a few different options for doing this. I will go through the three ways I use myself when I connect to my EC2-instance. 

The two first solutions I use for Microsoft Windows is PuTTY and Ubuntu on WSL. The third option is from iOS. 

Preparation 

Start with log in to your AWS account and create a new Key Pair.

EC2 Dashboard -> Key Pairs -> Create key pair.

Choose a name and select “pem” format and click Create Key Pair 

A “pem” file will automatically be downloaded to your computer. 

I suggest you use this new key pair when you create a new instance. If you want to change or if you lost your key. Follow these instructions here 

How to connect to Amazon EC2 from Putty 

This is tested on Microsoft Windows 2010 build 19041

Download the latest version of PuTTY (v 0.74) from www.putty.org.

Install PuTTY and start it. 

Import your pem file, connect to the public IPv4 address you have assigned to your EC2 Instance. 

How to connect to Amazon EC2 from Ubuntu WSL

This is tested on Microsoft Windows 2010 build 19041, Ubuntu 18.04.4 LTS

Suppose you don’t have Ubuntu installed. You can download it from Windows Store. More info here https://ubuntu.com/wsl

  1. Start Ubuntu.
  2. Create a config file.sudonano ~/.ssh/config
  3. Add the following code, update HostName with the Public DNS name for your EC2 Instance. Change User to SSH User name for your EC2 Instance and finally. Change the IdentityFile path to your pem file.


Host YourPublicHostName 

            HostName ec2-00-003-00-00.compute-1.amazonaws.com

            User TheUserNameForYourHost

            Port 22

            IdentityFile /home/path/to/your/pem/file/MySecretPemFile.pem

How to connect to Amazon EC2 from iPhone (iOS)

This is tested on iPhone 11 pro max unlocked, iOS version 14.3

Download Terminus from App Store 

  1. Add new host
  2. Add public ipv4 address to Hostname
  3. Select “Use SSH”
  4. AddUsername
  5. Select “Key” 
  6. Import Key
  7. Selectyoursshkey
  8. Save
  9. Done!

SPONSORED POST

Fabulous Interiors is an upcycled furniture shop in Somerset. We specialise in transforming old furniture into beautiful pieces. We also offer painted furniture commissions making you bespoke furniture. Have a look in our upcycled furniture shop for stunning hand painted furniture. See upcycled furniture shop Somerset

This entry was posted in Digital Marketing. Bookmark the permalink.