Connect to a cloud server
You can connect to the cloud server:
- SSH — for servers running the Linux operating system;
- RDP — for Windows servers;
- through the console in the control panel — for servers with any operating system.
In order to connect to a cloud server via SSH or RDP, it must be accessible from the Internet:
- through Public IP address and cloud router;
- or through public subnet.
View parameters for connection
The settings for connecting to the cloud server can be viewed at control panels:
- user name (login) and password — in section Cloud platform → Servers → server page → tab Console → fields Login и Password;
- public IP address — in section Cloud platform → Servers → server page → tab Ports → column Public IP.
If you forget your server password, you can reset and restore it.
Connect via SSH
The SSH protocol is used to connect to Linux cloud servers.
To connect to the server, you can enter a login and password or use the a couple of SSH keys. 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.
You can Store public SSH keys in a cloud platform.
From Linux/macOS
From Windows
-
Optional: create an SSH key pair and place a public SSH key on the cloud server: at server creation or on an existing server.
-
Open the CLI.
-
Connect to the server:
ssh <username>@<ip_address>
Specify:
<username>
— user name (login). You can look in control panels under Cloud platform → Servers → server page → tab Console → field Login;<ip_address>
— the public IP address of the server. You can look in control panels under Cloud platform → Servers → server page → tab Ports → column Public IP.
-
Enter the password. You can look in control panels under Cloud platform → Servers → server page → tab Console → field Password.
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 a public SSH key on the cloud server: at server creation or on the created server.
-
Set PuTTY and run it.
-
Open the tab Session.
-
In the field Host Name enter the public IP address of the server.
-
In the field Port Specify the port for SSH connection (by default
22
). -
In the field Connection type select the SSH connection type.
-
If you are using a pair of SSH keys, open the tab SSH — Auth, press Browse and download the private key file.
-
Click Open.
-
Confirm the connection and enter the login and password to log in to the server. The login and password can be viewed in control panels under Cloud platform → Servers → server page → tab Console → fields Login и Password.
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 a file when you first authorize on the server ~/.ssh/known_hosts
. An error may occur when reconnecting REMOTE HOST IDENTIFICATION HAS CHANGED
.
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 Windows
From Linux
From macOS.
- Open the menu Start → Connecting to a remote desktop.
- In the field Computer enter the public IP address of the server. You can look in control panels under Cloud platform → Servers → server page → tab Ports → column Public IP.
- Click Connect.
- Enter a username. You can look in control panels under Cloud platform → Servers → server page → tab Console → field Login.
- Enter the password. You can look in control panels under Cloud platform → Servers → server page → tab Console → field Password.
- Click OK.
-
Install an RDP client (rdesktop, Remmina or others). Read more in Selectel's blog article RDP remote access clients for Linux.
-
Open the CLI.
-
Connect to the server (example for rdesktop):
rdesktop <ip_address> -u <username> -p <password>
Specify:
<ip_address>
— the public IP address of the server. You can look in control panels under Cloud platform → Servers → server page → tab Ports → column Public IP;<username>
— user name (login). You can look in control panels under Cloud platform → Servers → server page → tab Console → field Login;<password>
— password. You can look in control panels under Cloud platform → Servers → server page → tab Console → field Password.
- Set Microsoft Remote Desktop and run it.
- To create a connection, tap +.
- In the field PC name enter the public IP address of the server. You can look in control panels under Cloud platform → Servers → server page → tab Ports → column Public IP.
- In the field Username enter a user name. You can look in control panels under Cloud platform → Servers → server page → tab Console → field Login.
- In the field Password enter the password. You can look in control panels under Cloud platform → Servers → server page → tab Console → field Password.
- Click Save.
- Double-click the created connection in the list.
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 with the following command Ctrl+V.
- В control panels go to Cloud platform → Servers.
- Open the server page → tab Console.
- On the server line, click .
- Enter the user name (login). You can look in the field Login.
- Enter the password. You can look in the field Password.