Connecting to a Server using SSH¶
In this article
Connecting to a server via SSH from Linux¶
To connect to your server via SSH from Linux, follow these steps:
-
Check for the server's IP address. Make sure you know the server's IP address. If you don't know it, you can find it in the Invapi Control Panel.
-
Install an SSH client (if necessary). An SSH client is usually already installed by default on most Linux distributions. To check this, open a terminal and run the command:
If the client is installed, you will see the program version.
If the SSH client is not installed, install it using your distribution's package manager:
-
For Ubuntu/Debian:
-
For CentOS/RHEL:
-
-
Connect to the server. Open a terminal and enter the following command:
For example:
-
Enter your password. After connecting, the system will prompt you to enter the password for the specified user. The server's login and password are sent to you via email when it is delivered.
Connecting to a server via SSH from Windows¶
-
Check for the server's IP address. Make sure you know the server's IP address. If you don't, you can find it in the Invapi Control Panel on the HOSTKEY.com website at https://invapi.hostkey.com.
-
In Windows 11, there are several ways to connect to a server via SSH:
Using OpenSSH (built-in application)¶
-
Starting with the October 2018 Update of Windows 10, the SSH client is included by default. To check this, run PowerShell and execute:
If the client is installed, you will see output options for its use.
-
If the SSH client is not installed, enable it through Settings:
1. Go to **Settings** > **System** > **Additional components**. 2. Find `OpenSSH Client` and install it.
-
Connect to the server. Open PowerShell and enter the following command:
For example:
-
Enter your password. After connecting, the system will prompt you to enter the password for the specified user. The server's login and password are sent to you via email when it is delivered.
Using PuTTY (alternative client):¶
-
Download PuTTY from the official website https://www.putty.org.
-
Launch PuTTY and enter the server's IP address in the field "Host Name (or IP address)".
-
Specify the connection type as
SSH
and click Open. -
Connect to the server:
-
Enter the server's IP address in the field Host Name (or IP address).
-
Specify port 22 for SSH if it has been changed.
-
Click Open. In the window that opens, enter your username and password.
-
-
Enter your password. After connecting, the system will prompt you to enter the password for the specified user. The server's login and password are sent to you via email when it is delivered.
Note
-
It is recommended to use SSH keys instead of passwords for more secure authentication. Instructions for setting up SSH keys can be found in your distribution's documentation or in our guide.
-
If you receive an error
Connection refused
, make sure that the SSH server is running on the target server and port 22 is open in the firewall.
Some of the content on this page was created or translated using AI.