Connect with SSH
You can manage your Linux instance from a terminal using SSH. You can either connect directly from your terminal or use a dedicated SSH client such as PuTTY.
This guide covers password and key-based logins, where to find your connection details, and the common things to check if a connection is refused.
Required Information
To log in to your instance via SSH, you will need:
- IP address of your instance
- Default username (for example,
ubuntuorroot, depending on the template) - Password — only if you are not using an SSH key. You can reveal it on the Instance Overview page.
You can find the IP address on the Virtual Machine card after creation. Hover over it to copy it quickly, or click the VM name to open its full overview.
Connecting from the Terminal
1. Open your terminal
- Windows: use Command Prompt, PowerShell, or Git Bash
- macOS / Linux: use the built-in Terminal app
2. Connect with a password
Replace the placeholders with your instance's username and public IP:
ssh username@public_ip_address
For example:
ssh ubuntu@203.0.113.42
The first time you connect, you will be asked to confirm the server's fingerprint — type yes to continue. When prompted, enter the password from the Instance Overview.
3. Connect with an SSH key (recommended)
If you added an SSH key when creating the instance, point to your private key with the -i flag:
ssh -i /path/to/your_private_key username@public_ip_address
If you see a "permissions are too open" warning, tighten the key's permissions and try again:
chmod 600 /path/to/your_private_key
Key-based authentication is more secure than passwords. For production instances, we recommend disabling password login once your key is working.
Connecting with PuTTY (Windows)
If you prefer a graphical client on Windows:
- Download and open PuTTY.
- In Host Name, enter
username@public_ip_address. - Leave the Port as
22and the connection type as SSH. - (Optional, for key-based login) Go to Connection > SSH > Auth and load your private key in
.ppkformat. Use PuTTYgen to convert an OpenSSH key to.ppkif needed. - Click Open and accept the security alert on the first connection.
Make Sure Port 22 Is Reachable
SSH uses port 22. If your connection times out, confirm the port is open to your instance through the Cloud Management Portal:
- Open your VM in the Cloud Management Portal.
- Go to Networking > Port Forwarding (or Firewall).
- Ensure a rule allows TCP traffic on port 22 to your instance's private IP.
For more detail, see Firewall Configuration and Port Forwarding.
Troubleshooting
- Connection refused or timed out — check that the VM is running, has a public IP, and that port 22 is open (see above).
- Permission denied (publickey) — you are using the wrong key or username, or password login is disabled. Confirm the username matches the template (for example,
ubuntufor Ubuntu images). - Host key verification failed — the server's key has changed (for example, after a rebuild). Remove the old entry with
ssh-keygen -R public_ip_addressand reconnect.
✅ Conclusion
Once connected, you have full command-line access to your instance. To keep that access secure:
-
Prefer SSH keys over passwords.
-
Open only the ports you need in the Cloud Management Portal.
-
Keep your private key safe, and never share it.