Connect to a cloud server
You can connect to a cloud server:
- via SSH — to a server with the Linux operating system;
- via RDP — to a server with the Windows operating system;
- via the console in the control panel — to servers with any operating system.
To be able to connect to a cloud server via SSH or RDP, the server must have internet access:
- via a public floating IP address and cloud router;
- via a direct public IP address;
- via a public subnet.
View connection settings
The settings for connecting to a cloud server can be viewed in the control panel:
- public IP address — from the top menu, click Products → Cloud Servers → Server page → Ports tab → in the port card, click next to the public IP address;
- username (login) and password — from the top menu, click Products → Cloud Servers → Server page → Console tab → Login and Password fields.
If you have forgotten your server password, you can reset and recover it.
Connect via SSH
The SSH protocol is used to connect to Linux-based cloud servers.
To connect to a server, you can use an SSH key pair. We recommend using SSH keys instead of a login and password — you can only connect with keys from the computer where the private key is stored.
Public SSH keys can be stored in the control panel; to do this, add public SSH keys to your user profile.
From Linux/macOS
From Windows
-
Optional: create an SSH key pair and place the public SSH key when creating a cloud server or on an existing server.
-
Open the CLI.
-
Connect to the server:
ssh <username>@<ip_address>Specify:
<username>— username (login). You can view it in the control panel: from the top menu, click Products → Cloud Servers → Server page → Console tab → Login field;<ip_address>— public IP address of the server. You can view it in the control panel: from the top menu, click Products → Cloud Servers → Server page → Ports tab → in the port card, click next to the public IP address.
-
Enter the password. You can view it in the control panel: from the top menu, click Products → Cloud Servers → Server page → Console tab → Password field.
If you are using an SSH key pair, you do not need to enter a password.
Error during reconnection
If you use SSH keys to connect, the SSH key is saved to the ~/.ssh/known_hosts file upon your first authorization on the server. When reconnecting, the following error may appear: REMOTE HOST IDENTIFICATION HAS CHANGED.
To fix this error:
-
remove the host information for that IP address:
ssh-keygen -f "/home/root/.ssh/known_hosts" -R "<ip_address>" -
or connect to the server using the command:
ssh -o UserKnownHostsFile=/dev/null root@<ip_address>
Connect via RDP
The RDP protocol is used to connect to Windows-based cloud servers.
From Linux
From macOS
From Windows
-
Open the Start menu → Remote Desktop Connection.
-
In the Computer field, enter the public IP address of the server. You can view it in the control panel: from the top menu, click Products → Cloud Servers → Server page → Ports tab → in the port card, click next to the public IP address.
-
Click Connect.
-
Enter the username. You can view it in the control panel: from the top menu, click Products → Cloud Servers → Server page → Console tab → Login field.
-
Enter the password. You can view it in the control panel: from the top menu, click Products → Cloud Servers → Server page → Console tab → Password field.
-
Click OK.
Connect via the console in the control panel
You can connect via the console in the control panel to a cloud server with any operating system.
The console is a browser-based VNC client; we recommend using it only when you cannot connect to the server via SSH or RDP. You cannot copy text from the console, but you can paste text using Ctrl+V.
-
In the control panel, from the top menu, click Products and select Cloud Servers.
-
In the server row, click .
-
Enter the username (login). You can view it in the Login field.
-
Enter the password. You can view it in the Password field.