Connect to a cloud server
You can connect to the cloud server:
- via SSH — to a server with Linux operating system;
- RDP — to a server with Windows operating system;
- through 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, it must have access to the Internet:
- through a public IP address and a cloud router;
- or through a public subnet.
View parameters for connection
You can view the settings for connecting to the cloud server in the control panel:
- public IP address — in the top menu, click Products and select Cloud Servers → Server page → Ports tab → in the port card, click next to the public IP address;
- user name (login) and password — in the top menu, click Products and select Cloud Servers → Server page → Console tab → Login and Password fields .
If you forget your server password, you can reset and recover it.
Connect via SSH
The SSH protocol is used to connect to Linux cloud servers.
You can use a pair of SSH keys to connect to the server. We recommend using SSH keys instead of login and password — you can connect using keys only 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 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 control panel: in the top menu, click Products and select Cloud Servers → Server page → tab Console → field Login;<ip_address>
— public IP address of the server. You can view it in control panel: in the top menu, click Products and select Cloud Servers → server page → tab Ports → 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 and select Cloud Servers → Server page → Console tab → Password field .
If you are using an SSH key pair, you do not need to enter a password.
In Windows 10, you can connect to the cloud server in the same way as in Linux and macOS — through the command line (cmd.exe).
In earlier versions of Windows, use PuTTY.
-
Optional: create an SSH key pair and place the public SSH key on the cloud server: when you create the server or on a created server.
-
Install PuTTY and run it.
-
Open the Session tab.
-
In the Host Name field, enter the public IP address of the server.
-
In the Port field, specify the port for the SSH connection (default is 22).
-
In the Connection type field, select the SSH connection type.
-
If you are using an SSH key pair, open the SSH — Auth tab, click Browse, and download the private key file.
-
Click Open.
-
Confirm the connection and enter the login and password to log in to the server. Login and password can be viewed in the control panel in the top menu, click Products and select Cloud Servers → Server page → Console tab → Login and Password fields.
If you are using an SSH key pair, you do not need to enter a password.
Error when reconnecting
If you use SSH keys to connect, the SSH key is saved to the ~/.ssh/known_hosts
file the first time you authorize the server. When you reconnect, the error REMOTE HOST IDENTIFICATION HAS CHANGED
may appear.
To correct a mistake:
-
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 Windows cloud servers.
From Linux
From macOS.
From Windows
-
Install an RDP client — for example, rdesktop or Remmina.
-
Open the CLI.
-
Connect to the server using an RDP client. Example command for
rdesktop
:rdesktop <ip_address> -u <username> -p <password>
Specify:
<ip_address>
— The public IP address of the server. Can be copied from the control panel in the top menu click Products → Cloud Servers → Server page → tab Ports → in the port card, click next to the public IP address;<username>
— username (login). You can view it in control panel: in the top menu, click Products and select Cloud Servers → Server page → tab Console → field Login;<password>
— password. You can look in control panel: in the top menu, click Products and select Cloud Servers → Server page → tab Console → the field Password.
-
Install Microsoft Remote Desktop and run it.
-
To create a connection, press +.
-
In the PC name field, enter the public IP address of the server. You can view it in the control panel: in the top menu, click Products and select Cloud Servers → Server page → Ports tab → in the port card, click next to the public IP address.
-
In the Username field, enter a username. You can view it in the control panel: in the top menu, click Products and select Cloud Servers → Server page → Console tab → Login field.
-
In the Password field, enter the password. You can view it in the Control Panel: from the top menu, click Products and select Cloud Servers → Server page → Console tab → Password field .
-
Click Save.
-
Double-click the created connection in the list.
-
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: in the top menu, click Products and select Cloud Servers → Server page → Ports tab → in the port card, click next to the public IP address.
-
Click Connect.
-
Enter the user name. You can view it in the control panel: in the top menu, click Products and select 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 and select Cloud Servers → Server page → Console tab → Password field .
-
Press 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 in cases 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 Ctrl+V.
-
In the dashboard, on the top menu, click Products and select Cloud Servers.
-
Open the server page → Console tab.
-
In the line with the server, click .
-
Enter the user name (login). You can look in the Login field.
-
Enter a password. You can look in the Password field.