From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco van Hulten Subject: Re: openssh installed, but ssh-daemon not starting Date: Sun, 12 Nov 2017 15:51:56 +0100 Message-ID: <20171112155156.353bb2b5@graviton.instanton> References: <20171110091641.29a42eb1@jasniac.instanton> Mime-Version: 1.0 Content-Type: text/plain; CHARSET=US-ASCII Content-Transfer-Encoding: 7BIT Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54970) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDtcB-0001tG-DL for help-guix@gnu.org; Sun, 12 Nov 2017 09:52:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDtc8-00024l-3F for help-guix@gnu.org; Sun, 12 Nov 2017 09:52:03 -0500 Received: from eterpe-smout.broadpark.no ([80.202.8.16]:44227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDtc7-000238-RG for help-guix@gnu.org; Sun, 12 Nov 2017 09:52:00 -0500 Received: from bgo1cloudm2.nextgentel.net ([80.202.8.59]) by eterpe-smout.broadpark.no (Oracle Communications Messaging Server 7u4-27.01(7.0.4.27.0) 64bit (built Aug 30 2012)) with ESMTP id <0OZB00LB27XU1R40@eterpe-smout.broadpark.no> for help-guix@gnu.org; Sun, 12 Nov 2017 15:51:57 +0100 (CET) In-reply-to: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: "Thompson, David" Cc: help-guix David- Op 10 nov 07:45 schreef Thompson, David: > Marco wrote: > > root@watson ~# herd start ssh-daemon > > herd: service 'ssh-daemon' could not be found > > ``` > > > > Is there actually a service `ssh-daemon' belonging to the package > > openssh? > > Services being installed upon package installation is one of those > things you learn from other distros that needs to be "unlearned" when > using GuixSD. When you run `guix package` you are altering your own > personal package profile, it doesn't alter the system in any way. > Installing the openssh package as a user is a good way to get the > openssh client available in your shell, but in order to get the > openssh daemon running you'll need to add an expression like `(service > openssh-service-type (openssh-configuration ...))` to your OS > configuration file and run `guix system reconfigure`. Make sure to > import the (gnu services ssh) module otherwise you'll get undefined > variable errors. It now works with the (service openssh-service-type). I did not change the default configuration. I feel a bit fuzzy about the exact keywords used, sometimes services take only one keyword: (services (cons* (xfce-desktop-service) (service openssh-service-type) %desktop-services)) For XFCE we use a singlet, whereas for OpenSSH a pair is used. Must one use such a pair if there are (optionally) configuration parameters to be defined for the respective service? The syntax of the ssh module import at the top of my profile is a bit different, but it seems to work (https://paste.debian.net/995301/). I am starting to understand the generals of the system. Thank you for the help! -Marco