Connect to a server with web SSH
Open an SSH session to your virtual server from the browser with a password or a private key. Requirements, step-by-step connection, limits and troubleshooting.
Web SSH connects the Hosted Console to one of your virtual servers. The connection runs from Hosted Cloud's SSH gateway to your server, and the gateway sends the terminal to your browser. You don't need an SSH client.
Requirements
- The server is a virtual server in your account (cloud server or hybrid pool server) and its status is active.
- The server has a public IPv4 address.
- An SSH server is running on the server and listens on port 22.
- You know the username and either its password or a private key whose public key is on the server.
Note
Bare metal, GPU servers and hosting services don't appear in the SSH list. For container hosting, use the container terminal instead.
Connect
- Open the Console in the Customer Portal.
- Click + and choose your server under Servers (SSH). You can also type
ssh <server name>in Hosted CLI. - Enter the Username. It is
rootby default. - Choose Password and type the password, or choose SSH key, paste your Private key and, if the key has one, its Key passphrase.
- Click Connect. When the session opens, the Console shows the server's host key fingerprint. Compare it with the fingerprint you expect the first time you connect.
To connect again after a session ends, click Reconnect. You will need to enter the password or key again because it is never stored.
How your credentials are protected
- Before connecting, the portal asks the API for a connection permission that is valid for 60 seconds and only for that one server in your account.
- The gateway checks again that the server belongs to you, is active and has a public IP address. It connects only to port 22; private and internal network addresses are refused.
- Your password, private key and passphrase are sent over an encrypted connection, used for that one SSH login and never written to disk or kept after the connection.
Tip
Prefer key-based login. Generate a key pair on your computer, add the public key to the server, and paste only the private key into the Console when you connect. Never paste your private key anywhere else, and never send it to support.
Limits
| Limit | Value |
|---|---|
| Open SSH sessions per account | 3 at the same time |
| Connection attempts | 10 per minute from the same IP address |
| Idle timeout | The session closes after 30 minutes with no input or output |
| Login timeout | The server must answer within 15 seconds |
| Username | Letters, digits, _, . and -, up to 32 characters, starting with a letter or _ |
If your firewall allows SSH only from certain IPs
The connection reaches your server from Hosted Cloud's SSH gateway, not from your computer. If your server's firewall (for example ufw, firewalld or iptables) or /etc/hosts.allow only accepts SSH from specific addresses, web SSH will time out. Open a support ticket to get the gateway address to allow.
Error messages
| Message | What to do |
|---|---|
| The username, password or key is incorrect. | Check the username (often root) and the password. With a key, make sure its public key is in ~/.ssh/authorized_keys on the server and that the passphrase is correct. |
| The server didn't respond. Check that the server is running and port 22 is reachable. | Start the server (vm start <name>), wait a minute, then check that SSH listens on port 22 and that no firewall blocks it. |
| Couldn't connect to the server. | SSH may be stopped, or the port may be closed. If you changed the SSH port, web SSH can't connect; use port 22 or your own SSH client. |
| The server isn't active or has no IP address. | The service is suspended, stopped in billing, or still being set up. Check the service page and your invoices. |
| You can keep at most 3 SSH sessions open. | Close an SSH tab, then connect again. |
| Too many attempts. Try again in a minute. | Wait one minute. |
| Connection permission expired. Connect again. | More than 60 seconds passed before the connection started. Click Connect again. |
| The session was closed after 30 minutes of inactivity. | Click Reconnect. Use tmux or screen on the server for long-running work. |
| Couldn't open a shell on the server. | The login worked but the user has no shell. Check the user's login shell on the server. |
Locked out?
Web SSH needs a working SSH service. If SSH is stopped, its port was changed or the firewall blocks it, there is currently no browser-based VNC or serial console for virtual servers. Open a support ticket and name the server; our team will help you get access back.