To check the status of SSH in Ubuntu by following the command below:
sudo service ssh status
It will show active status if SSH runs.