gnome-keyring does not support "ssh-add -c"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNOME Keyring |
Fix Released
|
Medium
|
|||
gnome-keyring (Debian) |
New
|
Unknown
|
|||
gnome-keyring (Ubuntu) |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
ssh-add does not work with -c (confirmation) when used with gnome-keyring (which is the common default in many desktop environments). This is a missing upstream feature in gnome-keyring (see upstream bug).
Workaround: switch to using ssh-agent instead. See upstream bug for details.
[Original Description]
ssh-add seems not to work with the confirmation (-c) option. Trying to require that identities be subject to confirmation when used brings up the error "Error reading response length from authentication socket. "
$ ssh-add -c /home/user/
Enter passphrase for /home/user/
Error reading response length from authentication socket.
Could not add identity: /home/user/
Addding keys not subject to confirmation when used works as normal:
$ ssh-add /home/user/
Enter passphrase for /home/user/
Identity added: /home/user/
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: openssh-client 1:6.0p1-3ubuntu1
ProcVersionSign
Uname: Linux 3.5.0-17-generic x86_64
ApportVersion: 2.6.1-0ubuntu3
Architecture: amd64
Date: Tue Oct 16 13:55:08 2012
InstallationMedia: Lubuntu 12.10 "Quantal Quetzal" - Release amd64+mac (20121015)
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
RelatedPackageV
ssh-askpass N/A
libpam-ssh N/A
keychain N/A
ssh-askpass-gnome N/A
SSHClientVersion: OpenSSH_6.0p1 Debian-3ubuntu1, OpenSSL 1.0.1c 10 May 2012
SourcePackage: openssh
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in openssh (Ubuntu): | |
status: | New → Incomplete |
affects: | openssh (Ubuntu) → gnome-keyring (Ubuntu) |
Changed in gnome-keyring (Ubuntu): | |
status: | Invalid → New |
Changed in gnome-keyring: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
Changed in gnome-keyring (Debian): | |
status: | Unknown → New |
summary: |
- ssh-add: Error reading response length from authentication socket. + gnome-keyring does not support "ssh-add -c" |
description: | updated |
Changed in gnome-keyring (Ubuntu): | |
status: | Confirmed → Triaged |
importance: | Undecided → Wishlist |
Changed in gnome-keyring: | |
status: | Confirmed → Fix Released |
Thank you for taking the time to report this bug and helping to make Ubuntu better.
Are you sure that you're connected to ssh-agent and not to some other agent like gnome-keyring- daemon? Please can you run:
eval `ssh-agent`
and then try again with "ssh-add -c" in the same shell to verify?