De mémoire et sauf erreur j'ai touché à ces lignes dans sshd.config
Port 22 ; 443
Protocol 2
KeyRegenerationInterval 1h
ServerKeyBits 1024
PermitRootLogin no
**********************************
[fil@localhost ~]$ su
Mot de passe :
[root@localhost fil]# systemctl enable sshd.service
[root@localhost fil]# systemctl status sshd.service
sshd.service - OpenSSH server daemon
Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled)
Active: inactive (dead)
oct. 20 11:25:17 localhost.localdomain systemd[1]: Unit sshd.service cannot b...
oct. 20 11:27:02 localhost.localdomain systemd[1]: Unit sshd.service cannot b...
oct. 20 11:33:52 localhost.localdomain systemd[1]: Unit sshd.service cannot b...
oct. 20 11:39:45 localhost.localdomain systemd[1]: Unit sshd.service cannot b...
oct. 20 11:40:14 localhost.localdomain systemd[1]: Unit sshd.service cannot b...
oct. 20 11:43:50 localhost.localdomain systemd[1]: Unit sshd.service cannot b...
oct. 20 11:49:00 localhost.localdomain systemd[1]: Unit sshd.service cannot b...
oct. 20 13:36:27 localhost.localdomain systemd[1]: Unit sshd.service cannot b...
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost fil]#
*********************************************
Si je fais reload ça retourne une erreur mais le service fonctionne??
# service sshd reload
Redirecting to /bin/systemctl reload sshd.service
Job for sshd.service failed. See 'systemctl status sshd.service' and 'journalctl -xn' for details.
journalctl -xn retourne celà:
Unit sshd.service cannot be reloaded because it is inactive.