gnome-keyring asks for passphrase for plain `ssh-add -l'

Bug #242666 reported by Ralph Corderoy
2
Affects Status Importance Assigned to Milestone
gnome-keyring (Ubuntu)
Invalid
Low
Ubuntu Desktop Bugs

Bug Description

I've a script I run on first logging in. I've used it for years, since
Ubuntu 5.04 and earlier. One of the things it does is an ssh-add so my
passphrase can be entered, but I don't want to run that if an ssh-add
has already been done so I used to do `ssh-add -l' and check the output
for a line where the third word was `/home/ralph/.ssh/id_dsa'.

Recently, with 8.04 I think, that's no longer a valid test. The output
when I've already entered the passphrase has changed to

    $ ssh-add -l
    1024 9d:5a:9a:4c:69:70:bd:e3:07:f7:5d:73:4c:87:e4:d4 (DSA)
    1024 9d:5a:9a:4c:69:70:bd:e3:07:f7:5d:73:4c:87:e4:d4 (DSA)
    $

So instead I thought I'd change to checking if $2 was
`9d:5a:9a:4c:69:70:bd:e3:07:f7:5d:73:4c:87:e4:d4'. However, on logging
in for the first-time, immediately after booting, if I do an `ssh-add
-l' a dialogue pops up asking for a passphrase. I cancel that by
pressing Escape. Why would merely attempting to *list* the fingerprints
of all the agent's keys ask for a passphrase?

A side effect of that diaglogue popping up is that ssh-add will now line
one key, but not two. I still haven't entered any passphrase at this
point.

    $ ssh-add -l
    1024 9d:5a:9a:4c:69:70:bd:e3:07:f7:5d:73:4c:87:e4:d4 (DSA)
    $

If I then do `ssh-add' and enter the passphrase then I get two lines of
output.

    $ ssh-add -l
    1024 9d:5a:9a:4c:69:70:bd:e3:07:f7:5d:73:4c:87:e4:d4 (DSA)
    1024 9d:5a:9a:4c:69:70:bd:e3:07:f7:5d:73:4c:87:e4:d4 (DSA)
    $

So, what's the significance of one or two lines of output given they're
identical, and why does listing the agent's keys' fingerprints ask for a
passphrase when it never used to?

Revision history for this message
Ralph Corderoy (ralph-inputplus) wrote :

The above was originally https://answers.launchpad.net/ubuntu/+source/openssh/+question/36438 rather than a bug. However, on thinking about it, prompting for the passphrase for `ssh-add -l' seems broken compared to the old behaviour.

Revision history for this message
Ralph Corderoy (ralph-inputplus) wrote :

/usr/lib/gnome-keyring/gnome-keyring-ask is the program prompting with the dialogue box, from package gnome-keyring 2.22.2-0ubuntu1.

Revision history for this message
Ralph Corderoy (ralph-inputplus) wrote :

Given it's /usr/lib/gnome-keyring/gnome-keyring-ask displaying the dialogue box I'm guessing gnome-keyring is the right package.

Revision history for this message
Sebastien Bacher (seb128) wrote :

running ssh-add -l doesn't trigger the password prompt on intrepid apparently, do you still get the issue?

Changed in gnome-keyring:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Sebastien Bacher (seb128) wrote :

We are closing this bug report as it lacks the information, described in the previous comments, we need to investigate the problem further. However, please reopen it if you can give us the missing information and don't hesitate to submit bug reports in the future.

Changed in gnome-keyring:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.