Using SSH is arguably the best method of managing your server so knowing how to use it is beneficial.
Before we start, it is required to gather some information. We will need a server IP address and root password.
The following article will help you to locate these details: Where can I find my server login details?
As an example, we will use server 'server-sshconnect' with IP address 126.96.36.199
Depending on your Operating System, proceed to establish a connection.
For windows users, using PuTTY would be the easiest option:
- Download PuTTY
- Launch PuTTY
- Enter your IP Address and click 'Open'
- Accept the Security Alert
- Type in your username 'root'
- Enter your password
The default SSH port is 22. If SSH port is changed, make sure to specify it in 'Port' field.
For Linux or macOS users, no additional software is necessary. Simply open up a Terminal by using a search tool in your system.
Once you have your Terminal opened, proceed to enter the following command.
# ssh root@<ipAddress>
Agree to continue connecting by typing in 'yes' and enter your password.
If the SSH port has been changed, specify it by adding '-p' parameter.
# ssh root@<ipAddress> -p <portNumber>
Congratulations! You have successfully established an SSH connection. To properly disconnect, you can simply type in:
In case you would like to use SSH keys to improve your security, feel free to go through this article: How to Generate and Use SSH Private & Public Keys?