random ssh keys (╯°□°)╯︵ ┻━┻ gnome-keyring

assistant: Work around horrible, terrible, very bad behavior of
gnome-keyring, by not storing special-purpose ssh keys in ~/.ssh/*.pub.

Apparently gnome-keyring apparently will load and indiscriminately use such
keys in some cases, even if they are not using any of the standard ssh key
names. Instead store the keys in ~/.ssh/annex/, which gnome-keyring will
not check.

Note that neither I nor #debian-devel were able to quite reproduce this
problem, but I believe it exists, and that this fixes it. And it certianly
won't hurt anything..
This commit is contained in:
Joey Hess 2013-04-14 15:34:59 -04:00
parent dd7e35ed97
commit aca9e4f0b4
3 changed files with 25 additions and 4 deletions

View file

@ -18,4 +18,12 @@ git-annex version: 4.20130324, Ubuntu 11.04
**Please provide any additional information below.**
> [[done]]. Although I have not 100% reproduced this, I have seen
> enough of the source code to gnome-keyring to be pretty sure it's at
> fault, and that my fix works.
>
> If this is happening to you, you can fix it by making a `~/.ssh/annex/`
> directory and moving `~/.ssh/key.annex*` to it. Then you'll need to edit
> `~/.ssh/config` to use the new path to the key. And you'll need to run
> `ssh-add -D` to clear out the bogus keys from the ssh agent (or log out
> and back in). --[[Joey]]