[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#34580: Service ssh-daemon could not be started
From: |
Ludovic Courtès |
Subject: |
bug#34580: Service ssh-daemon could not be started |
Date: |
Thu, 26 Sep 2019 22:48:58 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Hi Brand,
"Brant Gardner" <address@hidden> skribis:
> I'll cheerfully do the experiment, but I don't know how - can you direct me
> for how to add strace where you need it to a booting system?
You could try something like the patch below. When ‘ssh-daemon’ fails
to start, you’ll have to make sure to grab /tmp/ssh.log.
I’ve just experienced it on a headless machine so I sympathize all the
more now…
HTH!
Ludo’.
--- a/gnu/services/ssh.scm
+++ b/gnu/services/ssh.scm
@@ -23,6 +23,7 @@
(define-module (gnu services ssh)
#:use-module (gnu packages ssh)
#:use-module (gnu packages admin)
+ #:use-module (gnu packages linux)
#:use-module (gnu services)
#:use-module (gnu services shepherd)
#:use-module (gnu system pam)
@@ -491,7 +492,8 @@ of user-name/file-like tuples."
(openssh-configuration-pid-file config))
(define openssh-command
- #~(list (string-append #$(openssh-configuration-openssh config)
"/sbin/sshd")
+ #~(list #$(file-append strace "/bin/strace") "-f" "-s" "300" "-Tt" "-o"
"/tmp/ssh.log"
+ (string-append #$(openssh-configuration-openssh config)
"/sbin/sshd")
"-D" "-f" #$(openssh-config-file config)))
(list (shepherd-service
- bug#34580: Service ssh-daemon could not be started, Brant Gardner, 2019/09/20
- bug#34580: Service ssh-daemon could not be started, Ludovic Courtès, 2019/09/24
- bug#34580: Service ssh-daemon could not be started, Brant Gardner, 2019/09/24
- bug#34580: Service ssh-daemon could not be started,
Ludovic Courtès <=
- bug#34580: Service ssh-daemon could not be started, Brant Gardner, 2019/09/27
- bug#34580: Service ssh-daemon could not be started, Ludovic Courtès, 2019/09/28
- bug#34580: Service ssh-daemon could not be started, Brant Gardner, 2019/09/28
- bug#34580: Service ssh-daemon could not be started, pelzflorian (Florian Pelz), 2019/09/28
- bug#34580: Service ssh-daemon could not be started, Ludovic Courtès, 2019/09/28
- bug#34580: Service ssh-daemon could not be started, Danny Milosavljevic, 2019/09/28
- bug#34580: Service ssh-daemon could not be started, Danny Milosavljevic, 2019/09/28
- bug#34580: Service ssh-daemon could not be started, Ludovic Courtès, 2019/09/28
- bug#34580: Service ssh-daemon could not be started, Ludovic Courtès, 2019/09/28
- bug#34580: Service ssh-daemon could not be started, Brant Gardner, 2019/09/29