unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Joe Hillenbrand <joehillen@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: Manage ssh public keys?
Date: Thu, 09 Apr 2015 21:29:38 +0200	[thread overview]
Message-ID: <877ftlnlr1.fsf@gnu.org> (raw)
In-Reply-To: <CANJQ5C7QR7PicV6ra1Lv6xoia=HtE7Adb4fSCJYxyganvS4maA@mail.gmail.com> (Joe Hillenbrand's message of "Thu, 9 Apr 2015 08:34:07 -0700")

Joe Hillenbrand <joehillen@gmail.com> skribis:

> On Thu, Apr 9, 2015 at 5:00 AM, Ludovic Courtès <ludo@gnu.org> wrote:
>>
>> No (not yet?).  I guess you mean the authorized keys, right?
>
> Yes
>
>> It would be nice to have something like that, especially for automated
>> deployment scenarios.
>
> That is specifically the scenario I am building for. I am also trying
> to build testing VMs that need to be able to ssh after the images boot
> up.
>
> How do you suggests this functionality should be added?
>
> NixOS has the "openssh.authorizedKeys.keys" setting, but I don't think
> that translates to Guix.
> https://nixos.org/nixos/manual/sec-user-management.html

No, indeed.

As discussed on IRC, there are several issues, such as the choice of the
SSH implementation (lshd uses ‘lsh-authorize’ to add authorized keys,
not ~/.ssh/authorized_keys.)  That complicates things.

However, as David suggests, we could have a per-account list of files to
install.  I can imagine something like:

  (user-account
    (name "joe")
    ;; ...
    (files `((".ssh/authorized_keys" ,(local-file "my-authorized-keys"))
             (".emacs.d/foo.el" ,(local-file "foo.el")))))

Now, how should that be handled upon ‘reconfigure’?  By just overriding
those files?  Probably, I guess.

Also, should they be symlinks to the store or copies?

Ludo’.

  reply	other threads:[~2015-04-09 19:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-09  1:01 Manage ssh public keys? Joe Hillenbrand
2015-04-09 11:51 ` David Thompson
2015-04-09 12:00 ` Ludovic Courtès
2015-04-09 15:34   ` Joe Hillenbrand
2015-04-09 19:29     ` Ludovic Courtès [this message]
2015-04-10  9:28       ` 宋文武
2015-04-10 14:21         ` Ludovic Courtès
2015-04-10 14:24           ` David Thompson
2015-04-10 16:47           ` Joe Hillenbrand
2015-04-10 20:17             ` Ludovic Courtès
2015-04-10 20:45               ` David Thompson
2015-04-11 19:55                 ` Ludovic Courtès

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=877ftlnlr1.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=joehillen@gmail.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).