SSH is software used for providing security to the connection via encryption. Whenever there is a need for securing connection between a host server and a client SSH comes in handy. This security protocol has a main repository whose constituents are a few network protocols and some basic utilities. An additional feature of the SSH on the system is that it provides the access to the network security from anywhere in the world. It also covers the distant access for user login to make a connection between the central server and the client. Another perk been provided by the very software is that the transfer of data can be securely carried out from one server to another via distant administrative ramification. In this article an account of enabling SSH protocol on Ubuntu 20.04 system is given along with details to reach its main encrypted features required for empowering server security.
Requirements on system before enabling SSH
The system needs to have SSH program already installed after which you can enable its functions. If it is not already installed then you should first install it using the sudo command and then attempt to enable it.
Some very easy steps will help you activate SSH on your server. These will help you to make use of the network protocol of SSH on Ubuntu system. These steps are:
Step 1: Installing SSH
Step 2: Enabling SHH
Step 3: Status check
Step 4: Connecting with firewall port
You should run commands for upgrading and updating and then another sudo command to install SSH on your system. These commands are given below:
$ sudo apt update
$ sudo apt upgrade
$ sudo apt install openssh-server
In the above command if you use install shh in place of openssh you download the open package of SSH protocol. The installation process is proceeded after you have typed password.
In the next step, the network protocol is enabled on the Ubuntu system with the help of the following command:
$ sudo systemctl enable --now ssh
Your system now has the protocol for encrypted network enabled.
In order to check the status you can use the following command. This command also gives you the options of stopping, restarting and reloading the protocol.
$ systemctl status ssh.service
You can carry out your desired action on the protocol by simply substituting status in the above command with stop, reload or restart command.
Connecting with firewall port
If firewall is already installed and active on your system, then you should connect the server to port 22. You must also make sure that you have logged the server of the protocol through root user.
You can secure your network connection through SSH. The features of the protocol are also of great value. Of note, if you are connecting to the server with the help of SSH, then you must use username and IP of your system.
My name is Akhunzada Younis Said. I am a software project manager in HAZTECH, a software engineering graduate and a content writer. I love working with Linux, Data science and open-source software.