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 → 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 Linux-based cloud servers.
You can use an SSH key pair to connect to the server. We recommend using SSH keys instead of a login and password — you can only connect using keys from the computer where the private key is stored.
You can store public SSH keys 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 a 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;<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.
If you are using an SSH key pair, you do not need to enter a password.
Error during reconnection
If you are using SSH keys to connect, the SSH key is saved to the ~/.ssh/known_hosts file the first time you authorize on the server. When connecting again, the 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.
-
Enter the password. You can view it in the control panel: from the top menu, click Products → Cloud Servers → server page → Console tab → Password.
-
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 it is impossible to connect to the server via SSH or RDP. Copying text from the console is not supported; you can paste text using the Ctrl+V.
-
In the control panel, from the top menu, click Products and select Cloud Servers.
-
In the server line, click .
-
Enter the username (login). You can view it in the Login.
-
Enter the password. You can view it in the Password.