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.
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
- Start Ubuntu.
- Create a config file.sudonano ~/.ssh/config
- 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.
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
- Add new host
- Add public ipv4 address to Hostname
- Select “Use SSH”
- Select “Key”
- Import Key
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