all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: myglc2 <myglc2@gmail.com>
To: help-guix@gnu.org
Subject: Re: Starting ssh service
Date: Mon, 11 Apr 2016 14:48:02 -0400	[thread overview]
Message-ID: <8660vo0yot.fsf@gmail.com> (raw)
In-Reply-To: 570786C5.8080206@fouter.net

[-- Attachment #1: Type: text/plain, Size: 1152 bytes --]

Dick Middleton <dick@fouter.net> writes:

> Hello,
>
> 	Just started playing with Guix and am trying to get ssh to start as a service.
>
> My system is configured using the standard desktop example config.scm given
> with the installation.
>
> I'm trying to add the relevant bits from the simple example in reference guide
>   "7.2.1 Using the Configuration System".
>
> i.e I've added:
>
> (use-service-modules networking ssh)
> ...
> (services (cons* (lsh-service) %base-services))
>
> guix reconfigure complains with this error: ssh-daemon requires 'networking'
> which is undefined.
>
> Do I have to install something (why is it not already installed?) or am I
> doing something wrong?
>
> Thanks
>
> Dick

This sounds similar to issues I ran into with a headless server running
GuixSD a month or so ago (have since switched to Guix/Debian).

I ended up with lsh-service providing sshd (the ssh server) and openssh
providing ssh (the ssh client).

The config is split with sshd in the system config and ssh in the
per-user config.

There may be a more sane approach, but this did work and, FWIW, I have
attached the actual configs.

HTH, - George


[-- Attachment #2: c06glc.scm --]
[-- Type: application/octet-stream, Size: 593 bytes --]

(use-package-modules
 aspell
 gettext
 ghostscript ;; gs-fonts
 fonts ;; font-dejavu font-gnu-freefont-ttf
 base
 ssh rsync wget screen
 version-control
 emacs
  ;; so we can make guix w/o guix environment
 autotools ;; automake
 texlive ;; texlive-minimal
 curl
 xorg certs
 graphviz
 )
(packages->manifest
 (list
  ;;  gnu-gettext
  gs-fonts font-dejavu font-gnu-freefont-ttf
  gnu-make
  openssh nss-certs xauth rsync wget git git-manpages
  emacs magit screen aspell aspell-dict-en
  ;; so we can make guix w/o guix environment
  texlive-minimal  automake
  curl ;; lpaste
  graphviz
  ))

[-- Attachment #3: c06system.scm --]
[-- Type: application/octet-stream, Size: 1466 bytes --]

(use-modules (gnu))
(use-service-modules networking ssh)
(use-package-modules admin
		     disk
		     )
(operating-system
  (host-name "g1")
  (timezone "America/New_York")
  (locale "en_US.utf8")
  (bootloader (grub-configuration (device "/dev/sda")))
  (file-systems (cons (file-system
			(device "g1sd")
			(title 'label)
			(mount-point "/")
			(type "ext4"))
		      %base-file-systems))
  (users (cons* (user-account
		 (name "glc")
		 (comment "g l c")
		 (group "users")
		 (supplementary-groups '("wheel"))
		 (home-directory "/home/glc"))
		(user-account
		 (name "glc2")
		 (comment "glc2")
		 (group "users")
		 (supplementary-groups '("wheel"))
		 (home-directory "/home/glc2"))
		(user-account
		 (name "glc3")
		 (comment "glc3")
		 (group "users")
		 (supplementary-groups '("wheel"))
		 (home-directory "/home/glc3"))
		(user-account
		 (name "glc4")
		 (comment "glc4")
		 (group "users")
		 (supplementary-groups '("wheel"))
		 (home-directory "/home/glc4"))
		(user-account
		 (name "glc5")
		 (comment "glc5")
		 (group "users")
		 (supplementary-groups '("wheel"))
		 (home-directory "/home/glc5"))
		(user-account
		 (name "glc6")
		 (comment "glc6")
		 (group "users")
		 (supplementary-groups '("wheel"))
		 (home-directory "/home/glc6"))
		%base-user-accounts))
  (packages
   (cons*
    glibc-utf8-locales
    parted
    %base-packages))
  (services (cons* (dhcp-client-service)
		   (lsh-service #:port-number 22)
		   %base-services)))

      parent reply	other threads:[~2016-04-11 18:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-08 10:24 Starting ssh service Dick Middleton
2016-04-08 15:16 ` 宋文武
2016-04-11  9:48   ` Dick Middleton
2016-04-11 17:15     ` Alex Kost
2016-04-12 13:50       ` Dick Middleton
2016-04-11 18:48 ` myglc2 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8660vo0yot.fsf@gmail.com \
    --to=myglc2@gmail.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.