Bug#865854: /usr/bin/ssh-add: ssh-add does not add Ed25519 keys to agent
Package: openssh-client
Version: 1:7.4p1-10
Severity: normal
File: /usr/bin/ssh-add
Dear Maintainer,
I created a brand new Ed25519 key and tried to add it to the agent,
which ends with an error message. (see below)
The problem does not occur with a RSA key.
The problem occurred on a newly installed Debian Strech with GNOME3.
Ed25519:
--------
michael@polaris:/tmp/ssh-key$ ssh-keygen -t ed25519
Generating public/private ed25519 key pair.
Enter file in which to save the key (/home/michael/.ssh/id_ed25519):
./id_ed25519
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in ./id_ed25519.
Your public key has been saved in ./id_ed25519.pub.
The key fingerprint is:
SHA256:N0d6NHZx6BKKmpjDclsFnNU1MzSSnCXgdgldl+W+nLM michael@polaris
The key's randomart image is:
+--[ED25519 256]--+
| . o+=oBX o+o|
| +. .*+.*o+ |
| .o.o.=o. .|
| .o..=.o.. |
| . o +S + o. .|
| . * + . + . o|
| o + = |
| . o|
| E |
+----[SHA256]-----+
michael@polaris:/tmp/ssh-key$ ssh-add ./id_ed25519
Could not add identity "./id_ed25519": communication with agent failed
RSA:
----
michael@polaris:/tmp/ssh-key$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/michael/.ssh/id_rsa):
./id_rsa
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in ./id_rsa.
Your public key has been saved in ./id_rsa.pub.
The key fingerprint is:
SHA256:a3YVm/ERku8G4CupU3MqeC86kN7MLYZ/Hsjh8SRH1Ko michael@polaris
The key's randomart image is:
+---[RSA 2048]----+
| .. ... |
| . . . .. . |
| .. . .o.. |
| .. . .*.. |
| .+.o S. .+o. |
| ooEO =.o. o |
| . *+ooo+=. . |
| o O O+.. |
| ooB.=. |
+----[SHA256]-----+
michael@polaris:/tmp/ssh-key$ ssh-add ./id_rsa
Identity added: ./id_rsa (./id_rsa)
-- System Information:
Debian Release: 9.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.9.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages openssh-client depends on:
ii adduser 3.115
ii dpkg 1.18.24
ii libc6 2.24-11+deb9u1
ii libedit2 3.1-20160903-3
ii libgssapi-krb5-2 1.15-1
ii libselinux1 2.6-3+b1
ii libssl1.0.2 1.0.2l-2
ii passwd 1:4.4-4.1
ii zlib1g 1:1.2.8.dfsg-5
Versions of packages openssh-client recommends:
ii xauth 1:1.0.9-1+b2
Versions of packages openssh-client suggests:
pn keychain <none>
pn libpam-ssh <none>
pn monkeysphere <none>
pn ssh-askpass <none>
-- no debconf information
Reply to: