Valid for Cloud Servers, migrated Cloud Servers, VPS, Dedicated Servers, and Server Power Deals.

In this article, you will learn how to establish an SSH connection to your Linux server from a Linux computer. Secure Shell (SSH) is a network protocol that enables encrypted connections with remote devices such as servers. By using SSH, your data, such as passwords, usernames, etc. cannot be spied on.

How to establish an SSH connection to your server with Linux:

Requirement

You have enabled port 22 in your server's firewall. Further information on checking the firewall configuration can be found in the following article:

Checking network settings (Linux)

  • Open a terminal (e.g. xterm).

  • Customize the following command and then enter it in the terminal:

    ssh -p [port] [USERNAME]@[HOSTNAME]

    Examples:

    ssh -p 22 root@12.345.678.91

    ssh -p 2222 u123456@example.com

    The following query appears when you log in for the first time:

    Are you sure you want to continue connecting?

  • Optional: Enter the command yes.

  • Enter the password for the user and press [Enter].

You will now be connected to the server.