Before checking the status of the SSH service, make sure you have the SSHD service enabled.
Turning ON the SSHD service at boot time
systemctl enable sshd.service
To turn it off at boot time, please enter
systemctl disable sshd.service.
Check if a service is enabled or disabled
systemctl status sshd.service
It will display a message of active or inactive service.
Reload SSHD configuration changes
systemctl start sshd.servicesystemctl restart sshd.servicesystemctl stop sshd.servicesystemctl reload sshd.service
start option will initiate the SSHD service,
stop will stop it, and finally,
reload will refresh the new configurations.