ssh causes evil non-functional focus stealing dialog

Bug #91116 reported by Mikkel Høgh
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
seahorse (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Since I started testing Feisty, I've run in to a rather odd problem - when I run ssh in my terminal, a strange dialog pops up, asking for my Secure Shell Key Passphrase.
Given the fact that I have no such thing on this computer, I find that rather strange.

In addition to that, CLI commands should never spawn dialogs or other windows...
Also, the spawned window not only steals focus, but it steals all text input regardless of whether it's focused or not

To reproduce:
Open a termial in Feisty and run 'ssh some.host.com'

Revision history for this message
Mikkel Høgh (mikl) wrote :

Attaching screenshot of the dialog

Revision history for this message
Christof Krüger (christofkr) wrote :

Do you have seahorse installed? I also have this dialog and it looks like the seahorse-agent somehow hooks itself as a replacement to ssh-agent.

Changed in openssh:
status: Unconfirmed → Confirmed
Revision history for this message
Mikkel Høgh (mikl) wrote :

Ah, yes. That makes sense - but it's still a bug, since the key it asks the password for is not relevant to the connections. And still, CLI commands should not spawn windows and dialogs...

Revision history for this message
Michael Trunner (trunneml) wrote :

You can disable this "feature" in the seahorse options.

Revision history for this message
Mikkel Høgh (mikl) wrote :

Is that the "Automatically load Secure Shell keys" option?

Might I suggest this option be given a better description and be disabled by default?

Revision history for this message
Colin Watson (cjwatson) wrote :

Sounds like a seahorse bug rather than an openssh bug; rejecting the openssh part.

Changed in openssh:
status: Confirmed → Rejected
Revision history for this message
Mikkel Høgh (mikl) wrote :

This bug persists. This should be easy to fix - all that needs to be done is to make the password-dialog modal, so I can grab my password from my password app (Revelation).

Changed in seahorse:
status: New → Confirmed
Revision history for this message
John Doe (johndoe32102002) wrote :

"sudo apt-get remove seahorse" solves the problem.

Looks like its a bug in seahorse for sure. You can use KGpg as an alternative. Install that with "sudo apt-get install kgpg".

Revision history for this message
fazulas (fizolas) wrote :

In my opinion there is no bug, and there is no need to remove seahorse (although removing seahorse indeed removes the odd behaviour). Your problem is that you must have a bogus password set up in seahorse.

Open Applications/Accessories/Passwords and Encryption Keys. In "My personal keys" you probably have a dodgy secure shell key which is causing the odd behaviour. Delete it ruthlessly. Now you can add a brand new secure shell key (Key/Create New Key) if you wish to login ssh sessions automatically (it does work flawlessly). If there are no secure shell keys stored in seahorse, then you'll have to type your password everytime you issue "ssh" from the console.

Regards

Revision history for this message
Mikkel Høgh (mikl) wrote :

I don't know what you are talking about... Seahorse is _supposed_ to ask me for my SSH-key password, since the key is password protected.

No, there's a real bug here, and that is that the password dialog goes super-model, preventing me from grabbing the password from my password manager.

Revision history for this message
fazulas (fizolas) wrote :

Of course Seahorse _has _to ask for your key, if you have one. In any case, everything works as it should for me.

Revision history for this message
Mikkel Høgh (mikl) wrote :

Well, there's two issues to this.

1) The dialog showed up even though I had no SSH key.

2) The dialog is super-modal.

Revision history for this message
Andreas Moog (ampelbein) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Can you try with latest Ubuntu release? Thanks in advance.

Changed in seahorse:
assignee: nobody → andreas-moog
importance: Undecided → Medium
status: Confirmed → Incomplete
Revision history for this message
Mikkel Høgh (mikl) wrote :

Well, not for me. I switched to using a Mac 6 months ago, so I haven't used Ubuntu on the desktop since…

Revision history for this message
Andreas Moog (ampelbein) wrote :

Closing then.

Changed in seahorse:
assignee: andreas-moog → nobody
status: Incomplete → Invalid
Revision history for this message
cornet (cornet-sheepy) wrote :

I'm re-opening this bug for the following reason:

The Dialog box it opens steals ALL keyboard input, this should not happen IMO.

This happens on all 3 of my Ubuntu Hardy installations.

Changed in seahorse:
status: Invalid → Confirmed
Revision history for this message
Matthew Smith (indigojo) wrote :

I am using Intrepid, and the annoying password dialog appears when I try to push changes to a github repo. The problem is that the dialog does not accept any clipboard pasting or dropping, which means I have to type in my passphrase (which is long) by hand. I managed to get rid of this dialog in Hardy, and it came back after I upgraded to Intrepid. It should be easy to get rid of, and there is no obvious way to do that. There are a couple of methods I have seen on various forums, such as adding "purposes=" to the "~/.ssh/id_rsa.keystore" file, and a gconf option, and neither of them have worked on my system. This is stopping me using git to push remotely on gnome (and I don't want to use KDE).

Andreas Moog (ampelbein)
no longer affects: openssh (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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