[Top][All Lists]

[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…



--- 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) 
+    #~(list #$(file-append strace "/bin/strace") "-f" "-s" "300" "-Tt" "-o" 
+            (string-append #$(openssh-configuration-openssh config) 
             "-D" "-f" #$(openssh-config-file config)))
   (list (shepherd-service

reply via email to

[Prev in Thread] Current Thread [Next in Thread]