• [^] # Re: Logs?

    Posté par . En réponse au message Le serveur ssh plante après 20 minutes (debian). Évalué à 1. Dernière modification le 17 avril 2020 à 19:06.

    Bonjour,

    Merci pour vos réponses.

    Je pense que le problème d'espace peut-être écarté. Voici le retour de df -h:

    Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
    /dev/root 118G 107G 5,9G 95% /
    devtmpfs 465M 0 465M 0% /dev
    tmpfs 469M 0 469M 0% /dev/shm
    tmpfs 469M 24M 446M 6% /run
    tmpfs 5,0M 4,0K 5,0M 1% /run/lock
    tmpfs 469M 0 469M 0% /sys/fs/cgroup
    /dev/mmcblk0p1 253M 53M 200M 21% /boot
    tmpfs 94M 0 94M 0% /run/user/1000

    Voici le fichier ssh.service

    [Unit]
    Description=OpenBSD Secure Shell server
    Documentation=man:sshd(8) man:sshd_config(5)
    After=network.target auditd.service
    ConditionPathExists=!/etc/ssh/sshd_not_to_be_run
    [Service]
    EnvironmentFile=-/etc/default/ssh
    ExecStartPre=/usr/sbin/sshd -t
    ExecStart=/usr/sbin/sshd -D $SSHD_OPTS
    ExecReload=/usr/sbin/sshd -t
    ExecReload=/bin/kill -HUP $MAINPID
    KillMode=process
    Restart=on-failure
    RestartPreventExitStatus=255
    Type=notify
    RuntimeDirectory=sshd
    RuntimeDirectoryMode=0755
    

    En effet, quand je fais /usr/sbin/sshd -t j'ai les même erreurs.
    Could not load host key...

    Si c'est un problème de droit comment lui donner ?

    P.S : J'ai remarqué quand je fais apt install openssh-server après l'avoir désinstallé, il y a cette ligne : rescue-ssh.target is a disabled or a static unit, not starting it.

    Merci