Voici le résultat de la commande "journalctl --since "-1 hour"|grep ssh"
avril 1510:07:55 sudo[3854]: root : TTY=tty1 ;PWD=/home/pi ;USER=root ;COMMAND=/usr/bin/apt purge openssh-server -y
avril 1510:08:14 userdel[4242]: delete user 'sshd'
avril 1510:08:17 sudo[4283]: root : TTY=tty1 ;PWD=/home/pi ;USER=root ;COMMAND=/usr/bin/apt install openssh-server -y
avril 1510:08:26 useradd[4453]: new user: name=sshd, UID=107, GID=65534, home=/run/sshd, shell=/usr/sbin/nologin
avril 1510:08:27 usermod[4460]: change user 'sshd' password
avril 1510:08:27 chage[4466]: changed password expiry for sshd
avril 1510:08:31 sshd[4575]: Server listening on 0.0.0.0 port 22.
avril 1510:08:31 sshd[4575]: Server listening on :: port 22.
avril 1510:13:04 sshd[4716]: Connection closed by 192.168.1.78 port 53144[preauth]
avril 1510:15:28 sshd[4734]: Accepted password for pi from 192.168.1.78 port 53220 ssh2
avril 1510:15:28 sshd[4734]: pam_unix(sshd:session): session opened for user pi by (uid=0)
avril 1510:30:32 systemd[1]: ssh.service: Main process exited, code=killed, status=9/KILL
avril 1510:30:32 systemd[1]: ssh.service: Failed with result 'signal'.
avril 1510:30:32 systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
avril 1510:30:32 systemd[1]: ssh.service: Scheduled restart job, restart counter is at 1.
avril 1510:30:32 sshd[4895]: /etc/ssh/sshd_config line 84: Unsupported option UsePAM
avril 1510:30:32 sshd[4895]: Could not load host key: /etc/ssh/ssh_host_rsa_key
avril 1510:30:32 sshd[4895]: Could not load host key: /etc/ssh/ssh_host_dsa_key
avril 1510:30:32 sshd[4895]: Could not load host key: /etc/ssh/ssh_host_ecdsa_key
avril 1510:30:32 sshd[4895]: Disabling protocol version 2. Could not load host key
avril 1510:30:32 sshd[4895]: sshd: no hostkeys available -- exiting.
avril 1510:30:32 systemd[1]: ssh.service: Control process exited, code=exited, status=1/FAILURE
avril 1510:30:32 systemd[1]: ssh.service: Failed with result 'exit-code'.
avril 1510:30:32 systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
avril 1510:30:32 systemd[1]: ssh.service: Scheduled restart job, restart counter is at 2.
avril 1510:30:32 sshd[4918]: /etc/ssh/sshd_config line 84: Unsupported option UsePAM
avril 1510:30:32 sshd[4918]: Could not load host key: /etc/ssh/ssh_host_rsa_key
avril 1510:30:32 sshd[4918]: Could not load host key: /etc/ssh/ssh_host_dsa_key
avril 1510:30:32 sshd[4918]: Could not load host key: /etc/ssh/ssh_host_ecdsa_key
avril 1510:30:32 sshd[4918]: Disabling protocol version 2. Could not load host key
avril 1510:30:32 sshd[4918]: sshd: no hostkeys available -- exiting.
avril 1510:30:32 systemd[1]: ssh.service: Control process exited, code=exited, status=1/FAILURE
vril 1510:30:32 systemd[1]: ssh.service: Failed with result 'exit-code'.
avril 1510:30:32 systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
avril 1510:30:32 systemd[1]: ssh.service: Scheduled restart job, restart counter is at 3.
avril 1510:30:32 sshd[4927]: /etc/ssh/sshd_config line 84: Unsupported option UsePAM
avril 1510:30:32 sshd[4927]: Could not load host key: /etc/ssh/ssh_host_rsa_key
avril 1510:30:32 sshd[4927]: Could not load host key: /etc/ssh/ssh_host_dsa_key
avril 1510:30:32 sshd[4927]: Could not load host key: /etc/ssh/ssh_host_ecdsa_key
avril 1510:30:32 sshd[4927]: Disabling protocol version 2. Could not load host key
avril 1510:30:32 sshd[4927]: sshd: no hostkeys available -- exiting.
avril 1510:30:33 systemd[1]: ssh.service: Control process exited, code=exited, status=1/FAILURE
avril 1510:30:33 systemd[1]: ssh.service: Failed with result 'exit-code'.
avril 1510:30:33 systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
avril 1510:30:33 systemd[1]: ssh.service: Scheduled restart job, restart counter is at 4.
avril 1510:30:33 sshd[4941]: /etc/ssh/sshd_config line 84: Unsupported option UsePAM
avril 1510:30:33 sshd[4941]: Could not load host key: /etc/ssh/ssh_host_rsa_key
avril 1510:30:33 sshd[4941]: Could not load host key: /etc/ssh/ssh_host_dsa_key
avril 1510:30:33 sshd[4941]: Could not load host key: /etc/ssh/ssh_host_ecdsa_key
avril 1510:30:33 sshd[4941]: Disabling protocol version 2. Could not load host key
avril 1510:30:33 sshd[4941]: sshd: no hostkeys available -- exiting.
avril 1510:30:33 systemd[1]: ssh.service: Control process exited, code=exited, status=1/FAILURE
avril 1510:30:33 systemd[1]: ssh.service: Failed with result 'exit-code'.
avril 1510:30:33 systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
avril 1510:30:33 systemd[1]: ssh.service: Scheduled restart job, restart counter is at 5.
avril 1510:30:33 sshd[4957]: /etc/ssh/sshd_config line 84: Unsupported option UsePAM
avril 1510:30:33 sshd[4957]: Could not load host key: /etc/ssh/ssh_host_rsa_key
avril 1510:30:33 sshd[4957]: Could not load host key: /etc/ssh/ssh_host_dsa_key
avril 1510:30:33 sshd[4957]: Could not load host key: /etc/ssh/ssh_host_ecdsa_key
avril 1510:30:33 sshd[4957]: Disabling protocol version 2. Could not load host key
avril 1510:30:33 sshd[4957]: sshd: no hostkeys available -- exiting.
avril 1510:30:33 systemd[1]: ssh.service: Control process exited, code=exited, status=1/FAILURE
avril 1510:30:33 systemd[1]: ssh.service: Failed with result 'exit-code'.
avril 1510:30:33 systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
avril 1510:30:33 systemd[1]: ssh.service: Failed with result 'exit-code'.
avril 1510:30:33 systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
avril 1510:30:33 systemd[1]: ssh.service: Scheduled restart job, restart counter is at 6.
avril 1510:30:33 systemd[1]: ssh.service: Start request repeated too quickly.
avril 1510:30:33 systemd[1]: ssh.service: Failed with result 'exit-cod
La commande /usr/sbin/sshd -d -p 22 : Renvoie quelque chose de similaire
[^] # Re: Logs?
Posté par bug . En réponse au message Le serveur ssh plante après 20 minutes (debian). Évalué à 1. Dernière modification le 15 avril 2020 à 11:32.
Bonjour,
Merci pour toutes vos réponses!
Voici le résultat de la commande "journalctl --since "-1 hour"|grep ssh"
La commande
/usr/sbin/sshd -d -p 22: Renvoie quelque chose de similaireJ'ai donc essayé :
ssh-keygen -ASans succèsAuriez-vous une idée du problème ?
Merci d'avance.