sshd service could not be started - CloudCommandos/JohnChan GitHub Wiki

Run the following command to test sshd and see what the problem is

sshd -t

If the problem is unable to load the keys in /etc/ssh/, regenerate the keys

ssh-keygen -A

Restart sshd.service

systemctl restart sshd.service

Check sshd.service

systemctl status sshd.service