Connecting to a VPS/VDS on Windows allows you to manage your server as if you were running locally on it. You can install and configure software, create and delete websites, set up databases, configure firewalls, and more.
As of Windows 10 version 1809 (October 2018), OpenSSH is enabled by default, allowing you to connect via SSH directly through the command line.
First, make sure OpenSSH is installed on your device. Open a command prompt and run the following command:
ssh -V
If OpenSSH is installed, the output is as follows:
To connect to a remote server via SSH, execute:
ssh user@ip -p<port>
user
- user name in the server system,
ip
- The IP address of the remote server,
-p<port>
- port on which the connection is made (default: 22).
The command to connect to the server with the address 15.25.5.25 under the user "admin
" on port 2025 will look like this:
ssh admin@15.25.5.25 -p2025
If OpenSSH is not available on your system, you can use a third-party SSH client.
One of the most popular solutions for Windows is PuTTY. Download it from the official website, run the installer and follow the instructions to complete the installation.
To connect via PuTTY, select the "SSH" connection type under "Connection type", enter the IP address of the remote server in the "Host Name" field, and enter the port number (usually "22") in the "Port" field. After that, click the "Open" button to establish the connection.
PuTTY will then open a command line-like terminal window where you must enter your login (username on the remote system) and the appropriate password. When connecting for the first time, the program will ask you to confirm the connection - click "Accept" to continue.
To connect to a server via SSH in Linux, the "Terminal" application is used, which is pre-installed on the system. It can be found in the shortcut section or in the list of applications. In the Ubuntu distribution, for example, Terminal has a standard minimalistic interface, ready to enter commands.
Run the following command to connect to the server:
ssh user@ip -p<port>
user
- the user name on the server system,
ip
- The IP address of the remote server,
-p<port>
- port on which the connection is made (default: 22).
The command to connect to the server with the address 15.25.5.25 under the user "admin
" on port 2025 will look like this:
ssh admin@15.25.5.25 -p2025
SFTP (Secure File Transfer Protocol) allows you to securely transfer files between a local machine and a server.
Now you know how to connect to your server on Windows, Mac or Linux using the most convenient protocol.