← TutorialsEC2 Hosting

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

  1. Copy IP address, username, and password from your service detail page.
  2. Ensure port 22 (SSH) is open in your firewall.
  3. 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