How to SSH into AWS EC2
Amazon Web Services Elastic Compute Cloud. Learn how to securely connect to your server from any browser without installing native terminal apps like PuTTY or Termius.
Connection Quick Reference
- Default Username:ec2-user
- Authentication:PEM Key
Step-by-Step Guide
1
Find your Public IPv4 address
Log in to the AWS Management Console, navigate to the EC2 Dashboard, and select your instance. Under the 'Details' tab, copy the 'Public IPv4 address'.
2
Locate your private key file
Find the .pem key pair file you downloaded when launching your EC2 instance.
3
Connect via SSHDock
In SSHDock, click 'New Connection'. Enter your IP address as the Host, 'ec2-user' (or 'ubuntu' for Ubuntu AMIs) as the Username, and upload your .pem file under the 'Private Key' authentication tab.