[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: guixsd install questions

From: Marius Bakke
Subject: Re: guixsd install questions
Date: Fri, 27 Jan 2017 20:24:42 +0100
User-agent: Notmuch/0.23.5 ( Emacs/25.1.1 (x86_64-unknown-linux-gnu)

Divan Santana <address@hidden> writes:

> Hi All,
> Few newbie questions regarding install.
> * How to get sshd running on install image for easier remote install.
> Useful for a VM:
> I'm doing this nasty hack for now.
> Get ssh working on boot image:
> guix package -i shadow openssh
> export PATH="/root/.guix-profile/bin:/root/.guix-profile/sbin${PATH:+}$PATH"
> zile /etc/passwd # add sshd account
> zile /etc/shadow # add sshd account
> mkdir /etc/ssh
> echo "PermitRootLogin yes" > /etc/ssh/sshd_config
> ssh-keygen -t ecdsa -N "" -f /etc/ssh/ssh_host_ecdsa_key
> `which sshd`
> passwd root
> Sure there's a better way then the above hack?

Hi Divan,

That is a nasty hack indeed. Yet it's about the best approach right now.

I think it could be useful to ship a SSH server in the install image.
You can generate a disk image containing a service for "lsh" by adding
something like this to the file "gnu/system/install.scm", under

          (lsh-service #:port-number 22
                       #:root-login? #t
                       #:password-authentication? #f
                       ;; The root account is passwordless, so
                       ;; make sure a password is required.
                       #:allow-empty-passwords? #f)

Then generate a new disk image with
`guix system disk-image --image-size=1G gnu/system/install.scm`.

Can you try that? If it works, feel free to submit it as a patch to the
"guix-devel" mailing list and we can consider adding it to the next

Thanks for the report! Unfortunately I don't know the answer to the
other questions.

> Greetings from South Africa :)

Welcomings from Norway! :)

Attachment: signature.asc
Description: PGP signature

reply via email to

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