ping ec2-13-246-240-162.af-south-1.compute.amazonaws.com
ssh -i /path/to/your-key.pem [email protected]
Windows (using PuTTY):
.pem
file to .ppk
using PuTTYgen..ppk
file, and connect.For Ubuntu instances, the default username is ubuntu
instead of ec2-user
For a Windows-based EC2 instance, you can use Remote Desktop Protocol (RDP):
If you're hosting a web server (e.g., Apache, Nginx, Node.js), you can access the instance via a web browser:
Open a web browser.
Enter the public DNS or IP:If the web server is running and security group rules allow HTTP (port 80) or HTTPS (port 443), the website or API hosted should load.
<http://ec2-13-246-240-162.af-south-1.compute.amazonaws.com>