• [^] # Re: Logs?

    Posté par . 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"

    avril 15 10:07:55 sudo[3854]: root : TTY=tty1 ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/apt purge openssh-server -y
    avril 15 10:08:14 userdel[4242]: delete user 'sshd'
    avril 15 10:08:17 sudo[4283]: root : TTY=tty1 ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/apt install openssh-server -y
    avril 15 10:08:26 useradd[4453]: new user: name=sshd, UID=107, GID=65534, home=/run/sshd, shell=/usr/sbin/nologin
    avril 15 10:08:27 usermod[4460]: change user 'sshd' password
    avril 15 10:08:27 chage[4466]: changed password expiry for sshd
    avril 15 10:08:31 sshd[4575]: Server listening on 0.0.0.0 port 22.
    avril 15 10:08:31 sshd[4575]: Server listening on :: port 22.
    avril 15 10:13:04 sshd[4716]: Connection closed by 192.168.1.78 port 53144 [preauth]
    avril 15 10:15:28 sshd[4734]: Accepted password for pi from 192.168.1.78 port 53220 ssh2
    avril 15 10:15:28 sshd[4734]: pam_unix(sshd:session): session opened for user pi by (uid=0)
    avril 15 10:30:32 systemd[1]: ssh.service: Main process exited, code=killed, status=9/KILL
    avril 15 10:30:32 systemd[1]: ssh.service: Failed with result 'signal'.
    avril 15 10:30:32 systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
    avril 15 10:30:32 systemd[1]: ssh.service: Scheduled restart job, restart counter is at 1.
    avril 15 10:30:32 sshd[4895]: /etc/ssh/sshd_config line 84: Unsupported option UsePAM
    avril 15 10:30:32 sshd[4895]: Could not load host key: /etc/ssh/ssh_host_rsa_key
    avril 15 10:30:32 sshd[4895]: Could not load host key: /etc/ssh/ssh_host_dsa_key
    avril 15 10:30:32 sshd[4895]: Could not load host key: /etc/ssh/ssh_host_ecdsa_key
    avril 15 10:30:32 sshd[4895]: Disabling protocol version 2. Could not load host key
    avril 15 10:30:32 sshd[4895]: sshd: no hostkeys available -- exiting.
    avril 15 10:30:32 systemd[1]: ssh.service: Control process exited, code=exited, status=1/FAILURE
    avril 15 10:30:32 systemd[1]: ssh.service: Failed with result 'exit-code'.
    avril 15 10:30:32 systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
    avril 15 10:30:32 systemd[1]: ssh.service: Scheduled restart job, restart counter is at 2.
    avril 15 10:30:32 sshd[4918]: /etc/ssh/sshd_config line 84: Unsupported option UsePAM
    avril 15 10:30:32 sshd[4918]: Could not load host key: /etc/ssh/ssh_host_rsa_key
    avril 15 10:30:32 sshd[4918]: Could not load host key: /etc/ssh/ssh_host_dsa_key
    avril 15 10:30:32 sshd[4918]: Could not load host key: /etc/ssh/ssh_host_ecdsa_key
    avril 15 10:30:32 sshd[4918]: Disabling protocol version 2. Could not load host key
    avril 15 10:30:32 sshd[4918]: sshd: no hostkeys available -- exiting.
    avril 15 10:30:32 systemd[1]: ssh.service: Control process exited, code=exited, status=1/FAILURE
    vril 15 10:30:32 systemd[1]: ssh.service: Failed with result 'exit-code'.
    avril 15 10:30:32 systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
    avril 15 10:30:32 systemd[1]: ssh.service: Scheduled restart job, restart counter is at 3.
    avril 15 10:30:32 sshd[4927]: /etc/ssh/sshd_config line 84: Unsupported option UsePAM
    avril 15 10:30:32 sshd[4927]: Could not load host key: /etc/ssh/ssh_host_rsa_key
    avril 15 10:30:32 sshd[4927]: Could not load host key: /etc/ssh/ssh_host_dsa_key
    avril 15 10:30:32 sshd[4927]: Could not load host key: /etc/ssh/ssh_host_ecdsa_key
    avril 15 10:30:32 sshd[4927]: Disabling protocol version 2. Could not load host key
    avril 15 10:30:32 sshd[4927]: sshd: no hostkeys available -- exiting.
    avril 15 10:30:33 systemd[1]: ssh.service: Control process exited, code=exited, status=1/FAILURE
    avril 15 10:30:33 systemd[1]: ssh.service: Failed with result 'exit-code'.
    avril 15 10:30:33 systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
    avril 15 10:30:33 systemd[1]: ssh.service: Scheduled restart job, restart counter is at 4.
    avril 15 10:30:33 sshd[4941]: /etc/ssh/sshd_config line 84: Unsupported option UsePAM
    avril 15 10:30:33 sshd[4941]: Could not load host key: /etc/ssh/ssh_host_rsa_key
    avril 15 10:30:33 sshd[4941]: Could not load host key: /etc/ssh/ssh_host_dsa_key
    avril 15 10:30:33 sshd[4941]: Could not load host key: /etc/ssh/ssh_host_ecdsa_key
    avril 15 10:30:33 sshd[4941]: Disabling protocol version 2. Could not load host key
    avril 15 10:30:33 sshd[4941]: sshd: no hostkeys available -- exiting.
    avril 15 10:30:33 systemd[1]: ssh.service: Control process exited, code=exited, status=1/FAILURE
    avril 15 10:30:33 systemd[1]: ssh.service: Failed with result 'exit-code'.
    avril 15 10:30:33 systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
    avril 15 10:30:33 systemd[1]: ssh.service: Scheduled restart job, restart counter is at 5.
    avril 15 10:30:33 sshd[4957]: /etc/ssh/sshd_config line 84: Unsupported option UsePAM
    avril 15 10:30:33 sshd[4957]: Could not load host key: /etc/ssh/ssh_host_rsa_key
    avril 15 10:30:33 sshd[4957]: Could not load host key: /etc/ssh/ssh_host_dsa_key
    avril 15 10:30:33 sshd[4957]: Could not load host key: /etc/ssh/ssh_host_ecdsa_key
    avril 15 10:30:33 sshd[4957]: Disabling protocol version 2. Could not load host key
    avril 15 10:30:33 sshd[4957]: sshd: no hostkeys available -- exiting.
    avril 15 10:30:33 systemd[1]: ssh.service: Control process exited, code=exited, status=1/FAILURE
    avril 15 10:30:33 systemd[1]: ssh.service: Failed with result 'exit-code'.
    avril 15 10:30:33 systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
    avril 15 10:30:33 systemd[1]: ssh.service: Failed with result 'exit-code'.
    avril 15 10:30:33 systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
    avril 15 10:30:33 systemd[1]: ssh.service: Scheduled restart job, restart counter is at 6.
    avril 15 10:30:33 systemd[1]: ssh.service: Start request repeated too quickly.
    avril 15 10:30:33 systemd[1]: ssh.service: Failed with result 'exit-cod

    La commande /usr/sbin/sshd -d -p 22 : Renvoie quelque chose de similaire

    J'ai donc essayé : ssh-keygen -A Sans succès

    Auriez-vous une idée du problème ?

    Merci d'avance.