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 IP address and cloud router;
- or via a public subnet.
View connection settings
You can view the settings for connecting to a cloud server 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.
If you forgot your server password, you can reset and recover it.
Connect via SSH
The SSH protocol is used to connect to cloud servers running Linux.
You can use an SSH key pair to connect to the server. We recommend using SSH keys instead of a username and password — you can only connect using the keys from the computer where the private key is stored.
You can store public SSH keys in the control panel; to do this, add your public SSH keys to your user profile.
From Linux/macOS
From Windows
-
Optional: create an SSH key pair and place your 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 → 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 → 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. If you reconnect, the error REMOTE HOST IDENTIFICATION HAS CHANGED may appear.
To fix the error:
-
delete the host information by 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 cloud servers running Windows.
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 → Login field.
-
Enter the password. You can view it in the control panel: from the top menu, click Products → Cloud Servers → server page → Console → Password field.
-
Click OK.
Connect via the console in the control panel
You can connect to a cloud server with any operating system through the console in the control panel.
The console is a browser-based VNC client; we recommend using it only when it is impossible to connect to the server via SSH or RDP. Copying text from the console is not available; you can paste text using the Ctrl+V shortcut.
-
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.