From: "Ludovic Courtès" <ludo@gnu.org>
To: 75392@debbugs.gnu.org
Subject: bug#75392: “Failed to read private key” error with libssh 0.11.1
Date: Mon, 06 Jan 2025 00:21:28 +0100 [thread overview]
Message-ID: <87bjwkonif.fsf@inria.fr> (raw)
Starting from libssh 0.11.1 (upgraded in
6a045df575667460e90a9fc84d7d91d28950f252), I can no longer log in via
Guile-SSH:
--8<---------------cut here---------------start------------->8---
$ guix repl
GNU Guile 3.0.9
Copyright (C) 1995-2023 Free Software Foundation, Inc.
Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.
Enter `,help' for help.
scheme@(guix-user)> ,use(guix ssh)
scheme@(guix-user)> (open-ssh-session "localhost")
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
ERROR:
1. &message: "SSH authentication failed for 'ludo@localhost': Failed to read private key: /home/ludo/.ssh/id_rsa\n"
Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue.
scheme@(guix-user) [1]> ,q
scheme@(guix-user)> ,q
$ guix describe
Generation 331 Jan 05 2025 22:28:17 (current)
shepherd 6d52686
repository URL: https://git.savannah.gnu.org/git/shepherd.git
branch: main
commit: 6d526862375a426c13a52c7343c0ee9215367a00
guile f6359a4
repository URL: https://git.savannah.gnu.org/git/guile.git
branch: main
commit: f6359a4715d023761454f1bf945633ce4cca98fc
guix 613c8b8
repository URL: https://git.savannah.gnu.org/git/guix.git
commit: 613c8b81702f08ee36f20d15ee8f8c42a37acfef
--8<---------------cut here---------------end--------------->8---
It would seem that somehow libssh dismisses whatever gpg-agent tells it
and then goes on to read key files directly.
Ludo’.
next reply other threads:[~2025-01-05 23:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-05 23:21 Ludovic Courtès [this message]
2025-01-07 9:07 ` bug#75392: “Failed to read private key” error with libssh 0.11.1 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=87bjwkonif.fsf@inria.fr \
--to=ludo@gnu.org \
--cc=75392@debbugs.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 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).