Hey Thomas, I think the issue is happening because you're trying to add a public key to the agent. I can reproduce the failure here all the way back to Jammy if I try to do the same. However, ssh-add expects to receive the private key to be added.
I'm marking this bug as Incomplete because it seems to be a local thing, but please revert its status back to New if you really think there's an issue here. Cheers. ** Changed in: openssh (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to openssh in Ubuntu. https://bugs.launchpad.net/bugs/2078771 Title: ssh-add fails with "Error loading key "/home/x/.ssh/x.pub": error in libcrypto Status in openssh package in Ubuntu: Incomplete Bug description: I upgraded recenty from Noble to Oracular and since then, I can no longer add my ssh key to the ssh-agent with ssh-add. The error is: $ ssh-add ~/.ssh/x.pub Error loading key "/home/x/.ssh/.xpub": error in libcrypto Adding other keys works fine. ProblemType: Bug DistroRelease: Ubuntu 24.10 Package: openssh-client 1:9.7p1-7ubuntu3 ProcVersionSignature: Ubuntu 6.8.0-41.41-generic 6.8.12 Uname: Linux 6.8.0-41-generic x86_64 NonfreeKernelModules: zfs ApportVersion: 2.30.0-0ubuntu1 Architecture: amd64 CasperMD5CheckResult: pass CurrentDesktop: ubuntu:GNOME Date: Tue Sep 3 06:55:32 2024 InstallationDate: Installed on 2024-07-18 (47 days ago) InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424) ProcEnviron: LANG=en_US.UTF-8 PATH=(custom, no user) SHELL=/usr/bin/zsh TERM=xterm-256color XDG_RUNTIME_DIR=<set> RelatedPackageVersions: ssh-askpass N/A libpam-ssh N/A keychain N/A ssh-askpass-gnome N/A SSHClientVersion: OpenSSH_9.7p1 Ubuntu-7ubuntu3, OpenSSL 3.3.1 4 Jun 2024 SourcePackage: openssh UpgradeStatus: Upgraded to oracular on 2024-08-26 (8 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/2078771/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp