From c87e84fc905dd50d758568cc67bcaa95bd516d59 Mon Sep 17 00:00:00 2001 From: anarcat Date: Thu, 30 Oct 2014 14:33:46 +0000 Subject: [PATCH] add more information --- doc/bugs/flooding_me_with_ssh_password_prompts.mdwn | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/bugs/flooding_me_with_ssh_password_prompts.mdwn b/doc/bugs/flooding_me_with_ssh_password_prompts.mdwn index 6e6be07900..191ad02507 100644 --- a/doc/bugs/flooding_me_with_ssh_password_prompts.mdwn +++ b/doc/bugs/flooding_me_with_ssh_password_prompts.mdwn @@ -25,6 +25,14 @@ Still, when a situation like this occurs, it seems to me that it should generate Doesn't git-annex deploy its own ssh keys once it has established a connexion with an SSH remote? +> After more investigation, it turns out this peculiar git-annex daemon was some left-overs from a previous session i had logged out of. It is unclear why git-annex was still running, but there were also pulseaudio and redshift programs lying around so I suspect it wasn't git-annex specific. +> +> However, this problem remains on login. When I start a new session, there's a race condition between git-annex asking passwords and ssh-add asking me to unlock my private key. It's a nice festival of password prompts as I struggle to type in my ssh key faster than git-annex asks me for the remote host's password. +> +> In general, I think git-annex should set `PasswordAuthentication=no` (or allow me to configure it as such), especially if it knows it was able to login without a password at some point. It should especially do that if there's no UI attached informing the user it will be prompting for a password. `NumberOfPasswordPrompts=1` would also be a welcome improvement, but I really don't think I should be seeing those password prompts, especially since I *can* login to the server with my existing SSH key. +> +> Also note that I use Monkeysphere to input my private key into the SSH agent so it could explain why this doesn't usually happen to other people: Monkeysphere doesn't automatically get started from `ssh` if the key is missing, and instead `ssh` will revert to a regular password-based authentication which competes with the Monkeysphere password prompt. + ### What steps will reproduce the problem? It's unclear - i guess you need to setup git-annex to autostart and sync with remote ssh annexes. You may also need to have to use XFCE with Awesome to reproduce the problem. I can provide more details on my session setup on request. --[[anarcat]]