Salut sogal et merci pour ta réponse si rapide !!!
Retour de systemctl status sshd :
systemctl status sshd
● sshd.service - OpenSSH Daemon
Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2020-05-01 17:38:42 CEST; 13s ago
Process: 1926 ExecStartPre=/usr/sbin/sshd -t $SSHD_OPTS (code=exited, status=255)
Process: 1924 ExecStartPre=/usr/sbin/sshd-gen-keys-start (code=exited, status=0/SUCCESS)
retour de journalctl (que j'ai du lancer en root)
sudo journalctl -xe
[sudo] Mot de passe de root :
-- L'unité (unit) sshd.service a échoué, avec le résultat failed.
mai 01 17:38:41 serveur systemd[1]: sshd.service: Unit entered failed state.
mai 01 17:38:41 serveur systemd[1]: sshd.service: Failed with result 'exit-code'.
mai 01 17:38:42 serveur systemd[1]: sshd.service: Service RestartSec=100ms expired, scheduling restart.
mai 01 17:38:42 serveur systemd[1]: Stopped OpenSSH Daemon.
-- Subject: L'unité (unit) sshd.service a terminé son arrêt
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unité (unit) sshd.service a terminé son arrêt.
mai 01 17:38:42 serveur systemd[1]: Starting OpenSSH Daemon...
-- Subject: L'unité (unit) sshd.service a commencé à démarrer
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unité (unit) sshd.service a commencé à démarrer.
mai 01 17:38:42 serveur sshd-gen-keys-start[1924]: Checking for missing server keys in /etc/ssh
mai 01 17:38:42 serveur sshd[1926]: /etc/ssh/sshd_config line 128: Bad SSH2 mac spec 'hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,hmac-ripemd160'.
mai 01 17:38:42 serveur systemd[1]: sshd.service: Control process exited, code=exited status=255
mai 01 17:38:42 serveur systemd[1]: Failed to start OpenSSH Daemon.
-- Subject: L'unité (unit) sshd.service a échoué
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unité (unit) sshd.service a échoué, avec le résultat failed.
mai 01 17:38:42 serveur systemd[1]: sshd.service: Unit entered failed state.
mai 01 17:38:42 serveur systemd[1]: sshd.service: Failed with result 'exit-code'.
mai 01 17:38:42 serveur systemd[1]: sshd.service: Service RestartSec=100ms expired, scheduling restart.
mai 01 17:38:42 serveur systemd[1]: Stopped OpenSSH Daemon.
-- Subject: L'unité (unit) sshd.service a terminé son arrêt
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unité (unit) sshd.service a terminé son arrêt.
mai 01 17:38:42 serveur systemd[1]: sshd.service: Start request repeated too quickly.
mai 01 17:38:42 serveur systemd[1]: Failed to start OpenSSH Daemon.
-- Subject: L'unité (unit) sshd.service a échoué
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unité (unit) sshd.service a échoué, avec le résultat failed.
mai 01 17:38:42 serveur systemd[1]: sshd.service: Unit entered failed state.
mai 01 17:38:42 serveur systemd[1]: sshd.service: Failed with result 'exit-code'.
mai 01 17:38:46 serveur postfix/pickup[25098]: 5D80D5DA3AD: uid=456 from=<netdata>
mai 01 17:38:46 serveur postfix/cleanup[2237]: 5D80D5DA3AD: message-id=<20200501153846.5D80D5DA3AD@localhost>
mai 01 17:38:46 serveur postfix/qmgr[1940]: 5D80D5DA3AD: from=<netdata@localhost>, size=9268, nrcpt=1 (queue active)
mai 01 17:38:46 serveur postfix/local[2254]: 5D80D5DA3AD: to=<root@localhost>, orig_to=<root>, relay=local, delay=0.22, delays=0.15/0.01/0/0.06, dsn=2.0.0, status=sent (delivered to mailbox)
mai 01 17:38:46 serveur postfix/qmgr[1940]: 5D80D5DA3AD: removed
mai 01 17:38:55 serveur kwin_x11[6383]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 25395, resource id: 94371968, major code: 19 (DeleteProperty), minor code: 0
mai 01 17:38:55 serveur kwin_x11[6383]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 25398, resource id: 94371968, major code: 19 (DeleteProperty), minor code: 0
mai 01 17:38:55 serveur kwin_x11[6383]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 25399, resource id: 94371968, major code: 18 (ChangeProperty), minor code: 0
mai 01 17:38:55 serveur kwin_x11[6383]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 25400, resource id: 94371968, major code: 19 (DeleteProperty), minor code: 0
mai 01 17:38:55 serveur kwin_x11[6383]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 25401, resource id: 94371968, major code: 19 (DeleteProperty), minor code: 0
mai 01 17:38:55 serveur kwin_x11[6383]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 25402, resource id: 94371968, major code: 19 (DeleteProperty), minor code: 0
mai 01 17:38:55 serveur kwin_x11[6383]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 25403, resource id: 94371968, major code: 7 (ReparentWindow), minor code: 0
mai 01 17:38:55 serveur kwin_x11[6383]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 25404, resource id: 94371968, major code: 6 (ChangeSaveSet), minor code: 0
mai 01 17:38:55 serveur kwin_x11[6383]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 25405, resource id: 94371968, major code: 2 (ChangeWindowAttributes), minor code: 0
mai 01 17:38:55 serveur kwin_x11[6383]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 25406, resource id: 94371968, major code: 10 (UnmapWindow), minor code: 0
mai 01 17:39:29 serveur plasmashell[6390]: qt.qpa.xcb: QXcbConnection: XCB error: 2 (BadValue), sequence: 44480, resource id: 65011718, major code: 142 (Unknown), minor code: 3
mai 01 17:40:12 serveur sudo[3074]: pam_unix(sudo:session): session opened for user root by administrateur(uid=0)
retour du ls /etc/ssh
ldap.conf moduli ssh_config sshd_config sshd_config.rpmnew ssh_host_dsa_key ssh_host_dsa_key.pub ssh_host_ecdsa_key ssh_host_ecdsa_key.pub ssh_host_ed25519_key ssh_host_ed25519_key.pub ssh_host_key ssh_host_key.pub ssh_host_rsa_key ssh_host_rsa_key.pub
Je ne crois pas avoir modifié sshd_config, mais au cas où :
# $OpenBSD: sshd_config,v 1.101 2017/03/14 07:19:07 djm Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the
# default value.
#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
#HostKey /etc/ssh/ssh_host_ed25519_key
# Ciphers and keying
#RekeyLimit default none
# Logging
#SyslogFacility AUTH
#LogLevel INFO
# Authentication:
#LoginGraceTime 2m
#PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10
#PubkeyAuthentication yes
# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
# but this is overridden so installations will only check .ssh/authorized_keys
AuthorizedKeysFile .ssh/authorized_keys
#AuthorizedPrincipalsFile none
#AuthorizedKeysCommand none
#AuthorizedKeysCommandUser nobody
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes
# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no
# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no
# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
#GSSAPIStrictAcceptorCheck yes
#GSSAPIKeyExchange no
# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication. Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
UsePAM yes
#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS no
#PidFile /run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum none
# no default banner path
#Banner none
# override default of no subsystems
Subsystem sftp /usr/lib/ssh/sftp-server
# This enables accepting locale enviroment variables LC_* LANG, see sshd_config(5).
AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
AcceptEnv LC_IDENTIFICATION LC_ALL
# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# PermitTTY no
# ForceCommand cvs server
Ciphers aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes128-ctr
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,hmac-ripemd160
KexAlgorithms diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1
Voilà voilà, si ça te parle....