[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Manage ssh public keys?
From: |
Ludovic Courtès |
Subject: |
Re: Manage ssh public keys? |
Date: |
Thu, 09 Apr 2015 21:29:38 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Joe Hillenbrand <address@hidden> skribis:
> On Thu, Apr 9, 2015 at 5:00 AM, Ludovic Courtès <address@hidden> 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’.
- Manage ssh public keys?, Joe Hillenbrand, 2015/04/09
- Re: Manage ssh public keys?, David Thompson, 2015/04/09
- Re: Manage ssh public keys?, Ludovic Courtès, 2015/04/09
- Re: Manage ssh public keys?, Joe Hillenbrand, 2015/04/09
- Re: Manage ssh public keys?,
Ludovic Courtès <=
- Re: Manage ssh public keys?, 宋文武, 2015/04/10
- Re: Manage ssh public keys?, Ludovic Courtès, 2015/04/10
- Re: Manage ssh public keys?, David Thompson, 2015/04/10
- Re: Manage ssh public keys?, Joe Hillenbrand, 2015/04/10
- Re: Manage ssh public keys?, Ludovic Courtès, 2015/04/10
- Re: Manage ssh public keys?, David Thompson, 2015/04/10
- Re: Manage ssh public keys?, Ludovic Courtès, 2015/04/11