Steps to install OpenSSH by using the apt-get install command.
Enter the following command to download the package lists from the repositories and update them:
sudo apt-get update
Enter the following command to install the OpenSSH server:
sudo apt-get install openssh-server
To check the version of OpenSSH that is running, enter the following command: