From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0Ok2-0001pQ-My for guix-patches@gnu.org; Tue, 18 Apr 2017 04:44:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0Ojy-0006dN-2C for guix-patches@gnu.org; Tue, 18 Apr 2017 04:44:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:55216) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d0Ojx-0006dJ-UI for guix-patches@gnu.org; Tue, 18 Apr 2017 04:44:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d0Ojx-00031L-N0 for guix-patches@gnu.org; Tue, 18 Apr 2017 04:44:01 -0400 Subject: bug#26548: [PATCH] install: Enable SSH in installation image. Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20170417213030.1489-1-mbakke@fastmail.com> Date: Tue, 18 Apr 2017 10:43:41 +0200 In-Reply-To: <20170417213030.1489-1-mbakke@fastmail.com> (Marius Bakke's message of "Mon, 17 Apr 2017 23:30:30 +0200") Message-ID: <87inm2rtqa.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Marius Bakke Cc: 26548@debbugs.gnu.org Hello! Marius Bakke skribis: > Hi Guix! This patch adds an SSH server to the installation image > to aid remote installations as requested in > https://lists.gnu.org/archive/html/help-guix/2017-01/msg00047.html > > lsh-service depends on networking, so I pulled in a DHCP client too. > It increases the image size by about 29MiB. > > * gnu/system/install.scm (%installation-services): Add DHCP-CLIENT-SERVICE > and LSH-SERVICE. [...] > + ;; Add a DHCP client for networking. > + (dhcp-client-service) This is a problem: in the installation instructions, we tell people to configure networking (possibly wireless) by hand, so we cannot expect the DHCP client to work directly when the image is booted. Also, the installation instructions would need to be updated. However, what we could do, instead, is to add an SSH service that is off by default (with (start? #f)) and does not depend on =E2=80=98networking=E2= =80=99. That way, people would only need to type herd start ssh-daemon to get the thing up and running. WDYT? > + ;; Add an SSH server to facilitate remote installs. > + (lsh-service #:port-number 22 I agree with others that we should use OpenSSH here. :-) Thanks, Ludo=E2=80=99.