Step 1: Install OpenSSH Server Software Package

sudo yum –y install openssh-server openssh-clients

Step 2: Starting SSH Service

sudo systemctl start openssh-server

Step 3: Check sshd status

sudo systemctl status sshd

To stop the service

sudo systemctl stop sshd

To enable OpenSSH service

sudo systemctl enable sshd

For Ubuntu

First, update the system package

sudo apt-get update

Then, install the openssh server

sudo apt-get install openssh-server

To enable the service $\neq$ To start the service. By enablleing the service, this service will automatically start after each system reboot