From: Andrew Tropin <andrew@trop.in>
To: Janneke Nieuwenhuizen <janneke@gnu.org>, 62948@debbugs.gnu.org
Subject: bug#62948: Using home-ssh-agent-configuration on Ubuntu breaks login
Date: Thu, 15 Jun 2023 06:51:52 +0400 [thread overview]
Message-ID: <87h6r9h1yv.fsf@trop.in> (raw)
In-Reply-To: <875y9r96qn.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1705 bytes --]
On 2023-04-19 18:28, Janneke Nieuwenhuizen wrote:
> Hi,
>
> Using home-openssh-service-type on Ubuntu 22.10 (OpenSSH_9.3p1, OpenSSL
> 1.1.1t 7 Feb 2023) always creates an ~/.ssh/authorized_keys that breaks
> key-based login. I cannot access the logs and don't know what the
> problem might be.
>
> When, after running `guix home reconfigure', you do something like:
>
> --8<---------------cut here---------------start------------->8---
> mv .ssh/authorized_keys .ssh/authorized_keys-
> cat .ssh/authorized_keys- > .ssh/authorized_keys
> chmod 400 .ssh/authorized_keys
> --8<---------------cut here---------------end--------------->8---
>
> key-based login succeeds.
>
> A workaround would be to have home-openssh-service-type leave
> ~/.ssh/authorized_keys alone. However, when using
>
> --8<---------------cut here---------------start------------->8---
> (service
> home-openssh-service-type
> (home-openssh-configuration
> (authorized-keys '())))
> --8<---------------cut here---------------end--------------->8---
>
> any existing ~/.ssh/authorized_keys file is removed and replaced by a
> symlink to an empty file. I don't see how that is useful, it certainly
> breaks key-based login.
>
> Using
>
> --8<---------------cut here---------------start------------->8---
> (service
> home-openssh-service-type
> (home-openssh-configuration
> (authorized-keys #f)))
> --8<---------------cut here---------------end--------------->8---
>
> yields a backtrace.
>
> The attached patch fixes that and allows using (authorized-keys #f),
> also making this the default.
>
> WDYT?
It make perfect sense.
--
Best regards,
Andrew Tropin
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
prev parent reply other threads:[~2023-06-15 2:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-19 16:28 bug#62948: Using home-ssh-agent-configuration on Ubuntu breaks login Janneke Nieuwenhuizen
[not found] ` <handler.62948.B.16819217174025.ack@debbugs.gnu.org>
2023-04-23 7:58 ` bug#62948: etc/teams.scm cc home Janneke Nieuwenhuizen
2023-04-25 9:12 ` bug#62948: etc/team.scm cc home #2 Janneke Nieuwenhuizen
2023-04-25 9:12 ` bug#62948: etc/team.scm cc home #3 Janneke Nieuwenhuizen
2023-05-24 10:00 ` bug#62948: Using home-ssh-agent-configuration on Ubuntu breaks login Janneke Nieuwenhuizen
2023-06-15 2:51 ` Andrew Tropin [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=87h6r9h1yv.fsf@trop.in \
--to=andrew@trop.in \
--cc=62948@debbugs.gnu.org \
--cc=janneke@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.