ATTENTION! In the following lines of this article, we will give you a general understanding of how to use the SSH protocol to connect to a remote server. Please note that this article does not provide information on how to connect to the SSH service of your web hosting account with us. If you are looking for that information please check our "How can I connect via SSH on HostArmada?" article.
What is SSH?
SSH(Secure Shell) is a protocol providing you with secure command-line access to your HostArmada account. While using SSH, you can log in to your hosting account and run commands remotely, the same way you would typically execute commands if you are connected to the server directly.
In this article, we are going to discuss how you can connect to the server remotely using the SSH protocol, depending on your Operating System.
Windows 10
When Windows 10 first launched you had to use an SSH client to connect, however, back in 2018, a native SSH client got integrated for windows 10 allowing users to connect using this local program.
To access it, please follow the steps shown below:
- Please open the Run popup window by pressing the Windows key + r.
- When the Run popup window appears, please type in "cmd" and then click OK to open the command-line window.
- As soon as the command-line interface appears, please type in the following command, however, replace the user with your HostAramda user and hostname with your server's hostname.
ssh -p 19199 [email protected]
- The first time you connect to the server, you are going to receive a message about the key fingerprint. Please type "yes" and then press the ENTER button.
- You are going to need to type your password next. When done, please press the ENTER button to connect to the server.
- If the connection was successful, you are going to see the following command line output:
[user@hostname ~]$
- Now that you have successfully connected, you can begin executing Linux commands.
- To close the SSH connection, please type "exit" or press Ctrl + a + d in quick succession.
Older Windows Versions
Unlike Linux and Windows 10, the older version of Microsoft Windows does not include an SSH client natively; thus, you need to use an SSH client. We recommend PuTTy as it is intuitive and user-friendly.
To connect to your hosting account, please do the following:
- Start PuTTy by double-clicking on the PuTTy icon.
- A small window is going to appear after opening the PuTTy client. Inside the "Host Name (or IP address)" text field, please type in your server's hostname or IP address and inside the "Port" text field type in the server port 22.
- The connection type is going to default to "SSH" so leave it as such.
- Please press the "Open" button located at the bottom right side of the screen to open the command-line interface.
- A security alert is going to show up when you log in the first time - please click "Yes".
- Please type in your hosting account's username and press the "ENTER" button.
- Lastly, please type in your password and then press the "ENTER" button again.
- If the credentials are correct, you are going to connect to the server, and you are going to see the following prompt:
[user@hostname ~]$
- Now that you have successfully connected, you can begin executing Linux commands.
- To close the SSH connection, please type "exit" or press Ctrl + a + d in quick succession.
Linux and macOS
By far, these are the easiest way of connecting to your account over SSH as they natively have an SSH client, and there is no need for one. To connect from your Linux or macOS environment, please use these steps:
- Please open a terminal window. This process varies based on your operating system.
- When the command-line interface opens, please type in the following line while replacing the user with your HostArmada cPanel user and hostname with your HostAramada hostname.
ssh -p 19199 user@hostname
- You are required to enter your password, and upon doing so, you are going to connect to the server. If this was successful, you are going to see the following output:
[user@hostname ~]$
- Now that you have successfully connected, you can begin executing Linux commands.
- To close the SSH connection, please type "exit" or press Ctrl + a + d in quick succession.