Services
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.service systemctl restart sshd.service systemctl stop sshd.service systemctl reload sshd.service
The
start
option will initiate the SSHD service,stop
will stop it, and finally,restart
orreload
will refresh the new configurations.
Last updated