Connect to EC2 Instance via SSH
Connect securely to your EC2 instance from terminal, PuTTY, or VS Code.
8 min
After your EC2 instance is active, connect using the credentials in Dashboard → My Services.
Steps
- Copy IP address, username, and password from your service detail page.
- Ensure port 22 (SSH) is open in your firewall.
- Connect using your preferred method below.
Code examples
# Linux / macOS / Windows Terminal
ssh root@YOUR_SERVER_IP
# Custom SSH port
ssh -p 2222 root@YOUR_SERVER_IP
# Using SSH key
ssh -i ~/.ssh/id_rsa root@YOUR_SERVER_IP