Bug 16594

Summary: Can't add ED25519 keys with `ssh-add`
Product: Mageia Reporter: Augier <christophe>
Component: RPM PackagesAssignee: Guillaume Rousse <guillomovitch>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: Normal CC: marja11
Version: 5   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: openssh CVE:
Status comment:

Description Augier 2015-08-16 10:06:22 CEST
Description of problem:

Getting 

`Error reading response length from authentication socket.
Could not add identity: ~/.ssh/id_ed25519`

when entering `ssh-add` on startup. I have to start another SSH agent to add ED25519 keys. The bug doesn't seem to occur with RSA keys.


Version-Release number of selected component (if applicable):

OpenSSH 6.6P1

Steps to Reproduce:
1. do a fresh install of Mageia 5,
2. generate a ED25519 key,
3. reboot and open a terminal,
4. type `ssh-add`


Reproducible: 

Steps to Reproduce:
Comment 1 Marja Van Waes 2015-08-20 19:33:12 CEST
Assigning to maintainer

CC: (none) => marja11
Assignee: bugsquad => guillomovitch

Comment 2 Guillaume Rousse 2015-09-01 20:31:39 CEST
You're probably not using openssh implementation of ssh agent (ssh-agent), but another one, such as gnome-keyring. Check $SSH_AUTH_SOCK value, if that's something such as '/run/user/...' instead of '/tmp/...', that's the case.

Upstream bug for gnome-keyring here:
https://bugzilla.gnome.org/show_bug.cgi?id=641082 for
Comment 3 Augier 2015-09-01 20:46:06 CEST
`$SSH_AUTH_SOCK` is not set here.
Comment 4 Guillaume Rousse 2015-09-01 20:51:57 CEST
AFAIK, any SSH agent is supposed to set SSH_AGENT_PID and SSH_AUTH_SOCK environment variables. If you don't have any of them, that's another hint you're not using the one provided by openssh project.
Comment 5 Augier 2015-09-01 20:56:50 CEST
That's right, my bad, I have reinstalled Mageia a few days ago. SSH agent is not started anymore on boot (dunno why, maybe I should open a bug about it?).

I started SSH Agent and ssh-added, all works well. Closing this, then. Thx for help.
Comment 6 Augier 2015-09-01 20:57:53 CEST
Closing.

Status: NEW => RESOLVED
Resolution: (none) => FIXED