GNU bug report logs -
#75392
“Failed to read private key” error with libssh 0.11.1
Previous Next
Reported by: Ludovic Courtès <ludo <at> gnu.org>
Date: Sun, 5 Jan 2025 23:22:01 UTC
Severity: important
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 75392 in the body.
You can then email your comments to 75392 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#75392
; Package
guix
.
(Sun, 05 Jan 2025 23:22:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Sun, 05 Jan 2025 23:22:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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 <at> 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’.
Severity set to 'important' from 'normal'
Request was from
Ludovic Courtès <ludo <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Mon, 06 Jan 2025 10:32:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#75392
; Package
guix
.
(Tue, 07 Jan 2025 09:08:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 75392 <at> debbugs.gnu.org (full text, mbox):
Hello,
> It would seem that somehow libssh dismisses whatever gpg-agent tells it
> and then goes on to read key files directly.
Turns out the problem was sorta between keyboard and chair, but not
just!
Namely:
1. libssh 0.11.x no longer recognizes DSA keys (which is reasonable),
and it would choke when encountering one: “Unknown key type
found!”, from ‘ssh_pki_import_pubkey_blob’.
2. I had stale DSA keys under ~/.ssh, so I removed them.
3. Problem: silly gpg-agent (which I use with ‘--enable-ssh-support’)
would keep serving those DSA keys that I had removed! Turns out it
caches private keys under ~/.gnupg/private-keys-v1.d so I also had
to remove them as well.
After that, everything went well. Pfew.
Ludo’.
bug closed, send any further explanations to
75392 <at> debbugs.gnu.org and Ludovic Courtès <ludo <at> gnu.org>
Request was from
Ludovic Courtès <ludo <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Tue, 07 Jan 2025 09:08:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 04 Feb 2025 12:24:14 GMT)
Full text and
rfc822 format available.
This bug report was last modified 135 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.