• [^] # Re: conf

    Posté par . En réponse au message Accès ssh défaillant suite à migration Debian 9 > 10 (résolu). Évalué à 0. Dernière modification le 07 novembre 2019 à 22:20.

    Sommaire

    Merci M.Poil !

    Re : permissions louches : yep, y a souci je crois... Partition OK MAIS visiblement problème dans /etc car impossible d'y faire quoi que ce soit - j'ai pas réussi à ajouter un fichier, renommer, effacer le moindre élément. Tests fait dans /etc/, /etc/default/keyboards, /etc/ssh/, /etc/Imagemagick :

    "failed to create: test : No such file or directory"


    J'ai pas sciemment fait chattr +i sur /etc


    journalctl -xu ssh

    Nov 07 15:24:51 vps129566 systemd[1]: Starting OpenBSD Secure Shell server...
    -- Subject: A start job for unit ssh.service has begun execution
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- A start job for unit ssh.service has begun execution.

    -- The job identifier is 4318.
    Nov 07 15:24:51 vps129566 sshd[31283]: /etc/ssh/sshd_config line 14: Deprecated option UsePrivilegeSeparation
    Nov 07 15:24:51 vps129566 sshd[31283]: /etc/ssh/sshd_config line 17: Deprecated option KeyRegenerationInterval
    Nov 07 15:24:51 vps129566 sshd[31283]: /etc/ssh/sshd_config line 18: Deprecated option ServerKeyBits
    Nov 07 15:24:51 vps129566 sshd[31283]: /etc/ssh/sshd_config line 29: Bad SSH2 cipher spec '3des-cbc,blowfish-cbc,aes128-cbc,aes128-ctr,aes256-ctr'.
    Nov 07 15:24:51 vps129566 systemd[1]: ssh.service: Control process exited, code=exited, status=255/EXCEPTION
    -- Subject: Unit process exited
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- An ExecStartPre= process belonging to unit ssh.service has exited.

    -- The process' exit code is 'exited' and its exit status is 255.
    Nov 07 15:24:51 vps129566 systemd[1]: ssh.service: Failed with result 'exit-code'.
    -- Subject: Unit failed
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- The unit ssh.service has entered the 'failed' state with result 'exit-code'.
    Nov 07 15:24:52 vps129566 systemd[1]: Failed to start OpenBSD Secure Shell server.
    -- Subject: A start job for unit ssh.service has failed
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- A start job for unit ssh.service has finished with a failure.

    -- The job identifier is 4318 and the job result is failed.
    Nov 07 15:24:52 vps129566 systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
    Nov 07 15:24:52 vps129566 systemd[1]: ssh.service: Scheduled restart job, restart counter is at 1.
    -- Subject: Automatic restarting of a unit has been scheduled
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- Automatic restarting of the unit ssh.service has been scheduled, as the result for
    -- the configured Restart= setting for the unit.
    Nov 07 15:24:52 vps129566 systemd[1]: Stopped OpenBSD Secure Shell server.
    -- Subject: A stop job for unit ssh.service has finished
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- A stop job for unit ssh.service has finished.

    -- The job identifier is 4376 and the job result is done.
    Nov 07 15:24:52 vps129566 systemd[1]: Starting OpenBSD Secure Shell server...
    -- Subject: A start job for unit ssh.service has begun execution
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- A start job for unit ssh.service has begun execution.

    -- The job identifier is 4376.
    Nov 07 15:24:52 vps129566 sshd[31285]: /etc/ssh/sshd_config line 14: Deprecated option UsePrivilegeSeparation
    Nov 07 15:24:52 vps129566 sshd[31285]: /etc/ssh/sshd_config line 17: Deprecated option KeyRegenerationInterval
    Nov 07 15:24:52 vps129566 sshd[31285]: /etc/ssh/sshd_config line 18: Deprecated option ServerKeyBits
    Nov 07 15:24:52 vps129566 sshd[31285]: /etc/ssh/sshd_config line 29: Bad SSH2 cipher spec '3des-cbc,blowfish-cbc,aes128-cbc,aes128-ctr,aes256-ctr'.
    Nov 07 15:24:52 vps129566 systemd[1]: ssh.service: Control process exited, code=exited, status=255/EXCEPTION
    -- Subject: Unit process exited
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- An ExecStartPre= process belonging to unit ssh.service has exited.

    -- The process' exit code is 'exited' and its exit status is 255.
    Nov 07 15:24:52 vps129566 systemd[1]: ssh.service: Failed with result 'exit-code'.
    -- Subject: Unit failed
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- The unit ssh.service has entered the 'failed' state with result 'exit-code'.
    Nov 07 15:24:52 vps129566 systemd[1]: Failed to start OpenBSD Secure Shell server.
    -- Subject: A start job for unit ssh.service has failed
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- A start job for unit ssh.service has finished with a failure.

    -- The job identifier is 4376 and the job result is failed.
    Nov 07 15:24:52 vps129566 systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
    Nov 07 15:24:52 vps129566 systemd[1]: ssh.service: Scheduled restart job, restart counter is at 2.
    -- Subject: Automatic restarting of a unit has been scheduled
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- Automatic restarting of the unit ssh.service has been scheduled, as the result for
    -- the configured Restart= setting for the unit.
    Nov 07 15:24:52 vps129566 systemd[1]: Stopped OpenBSD Secure Shell server.
    -- Subject: A stop job for unit ssh.service has finished
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- A stop job for unit ssh.service has finished.

    -- The job identifier is 4434 and the job result is done.
    Nov 07 15:24:52 vps129566 systemd[1]: Starting OpenBSD Secure Shell server...
    -- Subject: A start job for unit ssh.service has begun execution
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- A start job for unit ssh.service has begun execution.

    -- The job identifier is 4434.
    Nov 07 15:24:52 vps129566 sshd[31287]: /etc/ssh/sshd_config line 14: Deprecated option UsePrivilegeSeparation
    Nov 07 15:24:52 vps129566 sshd[31287]: /etc/ssh/sshd_config line 17: Deprecated option KeyRegenerationInterval
    Nov 07 15:24:52 vps129566 sshd[31287]: /etc/ssh/sshd_config line 18: Deprecated option ServerKeyBits
    Nov 07 15:24:52 vps129566 sshd[31287]: /etc/ssh/sshd_config line 29: Bad SSH2 cipher spec '3des-cbc,blowfish-cbc,aes128-cbc,aes128-ctr,aes256-ctr'.
    Nov 07 15:24:52 vps129566 systemd[1]: ssh.service: Control process exited, code=exited, status=255/EXCEPTION
    -- Subject: Unit process exited
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- An ExecStartPre= process belonging to unit ssh.service has exited.

    -- The process' exit code is 'exited' and its exit status is 255.
    Nov 07 15:24:52 vps129566 systemd[1]: ssh.service: Failed with result 'exit-code'.
    -- Subject: Unit failed
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- The unit ssh.service has entered the 'failed' state with result 'exit-code'.
    Nov 07 15:24:53 vps129566 systemd[1]: Failed to start OpenBSD Secure Shell server.
    -- Subject: A start job for unit ssh.service has failed
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- A start job for unit ssh.service has finished with a failure.

    -- The job identifier is 4434 and the job result is failed.
    Nov 07 15:24:53 vps129566 systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
    Nov 07 15:24:53 vps129566 systemd[1]: ssh.service: Scheduled restart job, restart counter is at 3.
    -- Subject: Automatic restarting of a unit has been scheduled
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- Automatic restarting of the unit ssh.service has been scheduled, as the result for
    -- the configured Restart= setting for the unit.
    Nov 07 15:24:53 vps129566 systemd[1]: Stopped OpenBSD Secure Shell server.
    -- Subject: A stop job for unit ssh.service has finished
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- A stop job for unit ssh.service has finished.

    -- The job identifier is 4492 and the job result is done.
    Nov 07 15:24:53 vps129566 systemd[1]: Starting OpenBSD Secure Shell server...
    -- Subject: A start job for unit ssh.service has begun execution
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- A start job for unit ssh.service has begun execution.

    -- The job identifier is 4492.
    Nov 07 15:24:53 vps129566 sshd[31289]: /etc/ssh/sshd_config line 14: Deprecated option UsePrivilegeSeparation
    Nov 07 15:24:53 vps129566 sshd[31289]: /etc/ssh/sshd_config line 17: Deprecated option KeyRegenerationInterval
    Nov 07 15:24:53 vps129566 sshd[31289]: /etc/ssh/sshd_config line 18: Deprecated option ServerKeyBits
    Nov 07 15:24:53 vps129566 sshd[31289]: /etc/ssh/sshd_config line 29: Bad SSH2 cipher spec '3des-cbc,blowfish-cbc,aes128-cbc,aes128-ctr,aes256-ctr'.
    Nov 07 15:24:53 vps129566 systemd[1]: ssh.service: Control process exited, code=exited, status=255/EXCEPTION
    -- Subject: Unit process exited
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- An ExecStartPre= process belonging to unit ssh.service has exited.

    -- The process' exit code is 'exited' and its exit status is 255.
    Nov 07 15:24:53 vps129566 systemd[1]: ssh.service: Failed with result 'exit-code'.
    -- Subject: Unit failed
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- The unit ssh.service has entered the 'failed' state with result 'exit-code'.
    Nov 07 15:24:53 vps129566 systemd[1]: Failed to start OpenBSD Secure Shell server.
    -- Subject: A start job for unit ssh.service has failed
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- A start job for unit ssh.service has finished with a failure.

    -- The job identifier is 4492 and the job result is failed.
    Nov 07 15:24:53 vps129566 systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
    Nov 07 15:24:53 vps129566 systemd[1]: ssh.service: Scheduled restart job, restart counter is at 4.
    -- Subject: Automatic restarting of a unit has been scheduled
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- Automatic restarting of the unit ssh.service has been scheduled, as the result for
    -- the configured Restart= setting for the unit.
    Nov 07 15:24:53 vps129566 systemd[1]: Stopped OpenBSD Secure Shell server.
    -- Subject: A stop job for unit ssh.service has finished
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- A stop job for unit ssh.service has finished.

    -- The job identifier is 4550 and the job result is done.
    Nov 07 15:24:53 vps129566 systemd[1]: Starting OpenBSD Secure Shell server...
    -- Subject: A start job for unit ssh.service has begun execution
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- A start job for unit ssh.service has begun execution.

    -- The job identifier is 4550.
    Nov 07 15:24:53 vps129566 sshd[31292]: /etc/ssh/sshd_config line 14: Deprecated option UsePrivilegeSeparation
    Nov 07 15:24:53 vps129566 sshd[31292]: /etc/ssh/sshd_config line 17: Deprecated option KeyRegenerationInterval
    Nov 07 15:24:53 vps129566 sshd[31292]: /etc/ssh/sshd_config line 18: Deprecated option ServerKeyBits
    Nov 07 15:24:53 vps129566 sshd[31292]: /etc/ssh/sshd_config line 29: Bad SSH2 cipher spec '3des-cbc,blowfish-cbc,aes128-cbc,aes128-ctr,aes256-ctr'.
    Nov 07 15:24:53 vps129566 systemd[1]: ssh.service: Control process exited, code=exited, status=255/EXCEPTION
    -- Subject: Unit process exited
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- An ExecStartPre= process belonging to unit ssh.service has exited.

    -- The process' exit code is 'exited' and its exit status is 255.
    Nov 07 15:24:53 vps129566 systemd[1]: ssh.service: Failed with result 'exit-code'.
    -- Subject: Unit failed
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- The unit ssh.service has entered the 'failed' state with result 'exit-code'.
    Nov 07 15:24:53 vps129566 systemd[1]: Failed to start OpenBSD Secure Shell server.
    -- Subject: A start job for unit ssh.service has failed
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- A start job for unit ssh.service has finished with a failure.

    -- The job identifier is 4550 and the job result is failed.
    Nov 07 15:24:53 vps129566 systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
    Nov 07 15:24:53 vps129566 systemd[1]: ssh.service: Scheduled restart job, restart counter is at 5.
    -- Subject: Automatic restarting of a unit has been scheduled
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- Automatic restarting of the unit ssh.service has been scheduled, as the result for
    -- the configured Restart= setting for the unit.
    Nov 07 15:24:53 vps129566 systemd[1]: Stopped OpenBSD Secure Shell server.
    -- Subject: A stop job for unit ssh.service has finished
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- A stop job for unit ssh.service has finished.

    -- The job identifier is 4608 and the job result is done.
    Nov 07 15:24:53 vps129566 systemd[1]: ssh.service: Start request repeated too quickly.
    Nov 07 15:24:53 vps129566 systemd[1]: ssh.service: Failed with result 'exit-code'.
    -- Subject: Unit failed
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- The unit ssh.service has entered the 'failed' state with result 'exit-code'.
    Nov 07 15:24:53 vps129566 systemd[1]: Failed to start OpenBSD Secure Shell server.
    -- Subject: A start job for unit ssh.service has failed
    -- Defined-By: systemd

    -- Support: https://www.debian.org/support

    -- A start job for unit ssh.service has finished with a failure.

    -- The job identifier is 4608 and the job result is failed.```


    var/log/syslog

    Nov 7 15:24:51 vps129566 systemd[1]: Starting OpenBSD Secure Shell server...
    Nov 7 15:24:51 vps129566 sshd[31283]: /etc/ssh/sshd_config line 14: Deprecated option UsePrivilegeSeparation
    Nov 7 15:24:51 vps129566 sshd[31283]: /etc/ssh/sshd_config line 17: Deprecated option KeyRegenerationInterval
    Nov 7 15:24:51 vps129566 sshd[31283]: /etc/ssh/sshd_config line 18: Deprecated option ServerKeyBits
    Nov 7 15:24:51 vps129566 sshd[31283]: /etc/ssh/sshd_config line 29: Bad SSH2 cipher spec '3des-cbc,blowfish-cbc,aes128-cbc,aes128-ctr,aes256-ctr'.
    Nov 7 15:24:51 vps129566 systemd[1]: ssh.service: Control process exited, code=exited, status=255/EXCEPTION
    Nov 7 15:24:51 vps129566 systemd[1]: ssh.service: Failed with result 'exit-code'.
    Nov 7 15:24:52 vps129566 systemd[1]: Failed to start OpenBSD Secure Shell server.
    Nov 7 15:24:52 vps129566 systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
    Nov 7 15:24:52 vps129566 systemd[1]: ssh.service: Scheduled restart job, restart counter is at 1.
    Nov 7 15:24:52 vps129566 systemd[1]: Stopped OpenBSD Secure Shell server.
    Nov 7 15:24:52 vps129566 systemd[1]: Starting OpenBSD Secure Shell server...
    Nov 7 15:24:52 vps129566 sshd[31285]: /etc/ssh/sshd_config line 14: Deprecated option UsePrivilegeSeparation
    Nov 7 15:24:52 vps129566 sshd[31285]: /etc/ssh/sshd_config line 17: Deprecated option KeyRegenerationInterval
    Nov 7 15:24:52 vps129566 sshd[31285]: /etc/ssh/sshd_config line 18: Deprecated option ServerKeyBits
    Nov 7 15:24:52 vps129566 sshd[31285]: /etc/ssh/sshd_config line 29: Bad SSH2 cipher spec '3des-cbc,blowfish-cbc,aes128-cbc,aes128-ctr,aes256-ctr'.
    Nov 7 15:24:52 vps129566 systemd[1]: ssh.service: Control process exited, code=exited, status=255/EXCEPTION
    Nov 7 15:24:52 vps129566 systemd[1]: ssh.service: Failed with result 'exit-code'.
    Nov 7 15:24:52 vps129566 systemd[1]: Failed to start OpenBSD Secure Shell server.
    Nov 7 15:24:52 vps129566 systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
    Nov 7 15:24:52 vps129566 systemd[1]: ssh.service: Scheduled restart job, restart counter is at 2.
    Nov 7 15:24:52 vps129566 systemd[1]: Stopped OpenBSD Secure Shell server.
    Nov 7 15:24:52 vps129566 systemd[1]: Starting OpenBSD Secure Shell server...
    Nov 7 15:24:52 vps129566 sshd[31287]: /etc/ssh/sshd_config line 14: Deprecated option UsePrivilegeSeparation
    Nov 7 15:24:52 vps129566 sshd[31287]: /etc/ssh/sshd_config line 17: Deprecated option KeyRegenerationInterval
    Nov 7 15:24:52 vps129566 sshd[31287]: /etc/ssh/sshd_config line 18: Deprecated option ServerKeyBits
    Nov 7 15:24:52 vps129566 sshd[31287]: /etc/ssh/sshd_config line 29: Bad SSH2 cipher spec '3des-cbc,blowfish-cbc,aes128-cbc,aes128-ctr,aes256-ctr'.
    Nov 7 15:24:52 vps129566 systemd[1]: ssh.service: Control process exited, code=exited, status=255/EXCEPTION
    Nov 7 15:24:52 vps129566 systemd[1]: ssh.service: Failed with result 'exit-code'.
    Nov 7 15:24:53 vps129566 systemd[1]: Failed to start OpenBSD Secure Shell server.
    Nov 7 15:24:53 vps129566 systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
    Nov 7 15:24:53 vps129566 systemd[1]: ssh.service: Scheduled restart job, restart counter is at 3.
    Nov 7 15:24:53 vps129566 systemd[1]: Stopped OpenBSD Secure Shell server.
    Nov 7 15:24:53 vps129566 systemd[1]: Starting OpenBSD Secure Shell server...
    Nov 7 15:24:53 vps129566 sshd[31289]: /etc/ssh/sshd_config line 14: Deprecated option UsePrivilegeSeparation
    Nov 7 15:24:53 vps129566 sshd[31289]: /etc/ssh/sshd_config line 17: Deprecated option KeyRegenerationInterval
    Nov 7 15:24:53 vps129566 sshd[31289]: /etc/ssh/sshd_config line 18: Deprecated option ServerKeyBits
    Nov 7 15:24:53 vps129566 sshd[31289]: /etc/ssh/sshd_config line 29: Bad SSH2 cipher spec '3des-cbc,blowfish-cbc,aes128-cbc,aes128-ctr,aes256-ctr'.
    Nov 7 15:24:53 vps129566 systemd[1]: ssh.service: Control process exited, code=exited, status=255/EXCEPTION
    Nov 7 15:24:53 vps129566 systemd[1]: ssh.service: Failed with result 'exit-code'.
    Nov 7 15:24:53 vps129566 systemd[1]: Failed to start OpenBSD Secure Shell server.
    Nov 7 15:24:53 vps129566 systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
    Nov 7 15:24:53 vps129566 systemd[1]: ssh.service: Scheduled restart job, restart counter is at 4.
    Nov 7 15:24:53 vps129566 systemd[1]: Stopped OpenBSD Secure Shell server.
    Nov 7 15:24:53 vps129566 systemd[1]: Starting OpenBSD Secure Shell server...
    Nov 7 15:24:53 vps129566 sshd[31292]: /etc/ssh/sshd_config line 14: Deprecated option UsePrivilegeSeparation
    Nov 7 15:24:53 vps129566 sshd[31292]: /etc/ssh/sshd_config line 17: Deprecated option KeyRegenerationInterval
    Nov 7 15:24:53 vps129566 sshd[31292]: /etc/ssh/sshd_config line 18: Deprecated option ServerKeyBits
    Nov 7 15:24:53 vps129566 sshd[31292]: /etc/ssh/sshd_config line 29: Bad SSH2 cipher spec '3des-cbc,blowfish-cbc,aes128-cbc,aes128-ctr,aes256-ctr'.
    Nov 7 15:24:53 vps129566 systemd[1]: ssh.service: Control process exited, code=exited, status=255/EXCEPTION
    Nov 7 15:24:53 vps129566 systemd[1]: ssh.service: Failed with result 'exit-code'.
    Nov 7 15:24:53 vps129566 systemd[1]: Failed to start OpenBSD Secure Shell server.
    Nov 7 15:24:53 vps129566 systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
    Nov 7 15:24:53 vps129566 systemd[1]: ssh.service: Scheduled restart job, restart counter is at 5.
    Nov 7 15:24:53 vps129566 systemd[1]: Stopped OpenBSD Secure Shell server.
    Nov 7 15:24:53 vps129566 systemd[1]: ssh.service: Start request repeated too quickly.
    Nov 7 15:24:53 vps129566 systemd[1]: ssh.service: Failed with result 'exit-code'.
    Nov 7 15:24:53 vps129566 systemd[1]: Failed to start OpenBSD Secure Shell server.


    netstat -lpn |grep 22
    unix 2 [ ACC ] STREAM LISTENING 7226 1/init /var/run/dbus/system_bus_socket


    Réinstallation des paquets:

    mv /etc/ssh{,.old}

    Problème (dsl - on essaie de renommer tous les fichiers de /ssh en .old ?)

    "mv: missing destination file operand after '/etc/ssh{,.old}'
    Try 'mv --help' for more information."

    J'attends ta réponse avant de poursuivre avec la réinstallation.

    En tout cas, on semble avoir un faisceau d'indices...

    C