Bug#699600: gnome-session-bin: every session using 'gnome-session' (gnome, ubuntu, ...) have a problem with 'ssh-add -s ...' - startkde, startlxde, ... works.
Gabriel Sailer
Gabriel.Sailer at gmx.net
Sat Feb 2 10:34:23 UTC 2013
Package: gnome-session-bin
Version: 2.30.2-3
Severity: normal
Tags: squeeze
On standard installation of debian 6.0 (squeeze) a PKCS#11 key could not be
added to the ssh-agent.
We use a own build PKCS#11 library but the same error occur with '/usr/lib
/opensc-pkcs11.so'.
After deactivating the 'Startup Apllications'
Certificate and Key Storage
GNOME Keyring: PKCS#11 Component
SSH Key Agent
Gnome Keyring: SSH Agent
the 'ssh-add -s ...' works.
-- System Information:
Debian Release: 6.0.6
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages gnome-session-bin depends on:
ii dbus-x11 1.2.24-4+squeeze2 simple interprocess messaging syst
ii gconf2 2.28.1-6 GNOME configuration database syste
ii libc6 2.11.3-4 Embedded GNU C Library: Shared lib
ii libdbus-1-3 1.2.24-4+squeeze2 simple interprocess messaging syst
ii libdbus-glib-1-2 0.88-2.1 simple interprocess messaging syst
ii libgconf2-4 2.28.1-6 GNOME configuration database syste
ii libglib2.0-0 2.24.2-1 The GLib library of C routines
ii libgtk2.0-0 2.20.1-2 The GTK+ graphical user interface
ii libice6 2:1.0.6-2 X11 Inter-Client Exchange library
ii libsm6 2:1.1.1-1 X11 Session Management library
ii libupower-glib1 0.9.5-5 abstraction for power management -
ii libx11-6 2:1.3.3-4 X11 client-side library
ii libxau6 1:1.0.6-1 X11 authorisation library
ii libxext6 2:1.1.2-1 X11 miscellaneous extension librar
ii libxrender1 1:0.9.6-1 X Rendering Extension client libra
ii libxtst6 2:1.1.0-3 X11 Testing -- Record extension li
ii upower 0.9.5-5 abstraction for power management
gnome-session-bin recommends no packages.
gnome-session-bin suggests no packages.
-- no debconf information
### Tested sessions:
# Ubuntu 12.04
/usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session gnome-session --session=gnome -> Not OK
/usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session gnome-session --session=ubuntu -> Not OK
/usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session gnome-session --session=ubuntu-2d -> Not OK
/usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/openbox-session -> OK
/usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/startkde -> OK
/usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/startlxde -> OK
/usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session startxfce4 -> OK
# Debian 6.0
/usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/seahorse-agent --execute x-session-manager -> Not OK
/usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session x-session-manager -> Not OK
$ ls -l /usr/bin/x-session-manager /etc/alternatives/x-session-manager /usr/bin/gnome-session
lrwxrwxrwx 1 root root 22 16. Nov 12:30 /etc/alternatives/x-session-manager -> /usr/bin/gnome-session
-rwxr-xr-x 1 root root 219976 6. Nov 2010 /usr/bin/gnome-session
lrwxrwxrwx 1 root root 35 16. Nov 12:30 /usr/bin/x-session-manager -> /etc/alternatives/x-session-manager
$
### ssh-add using login ssh-agent
$ ssh-add -s /usr/local/lib/libcardos11.so
Enter passphrase for PKCS#11:
SSH_AGENT_FAILURE
Could not add card: /usr/local/lib/libcardos11.so
$
### ssh-add using own ssh-agent
$ ssh-agent bash
$ ssh-add -s /usr/local/lib/libcardos11.so
Enter passphrase for PKCS#11:
Card added: /usr/local/lib/libcardos11.so
$ ssh-add -l
2048 20:b4:97:ca:0c:3c:2e:3a:a0:ea:67:ee:75:40:c8:e5 /usr/local/lib/libcardos11.so (RSA)
2048 c1:d4:e9:ed:9b:84:78:60:a0:29:93:c2:78:1f:36:35 /usr/local/lib/libcardos11.so (RSA)
$
Respectfully
Gabriel Sailer
More information about the pkg-gnome-maintainers
mailing list