aboutsummaryrefslogtreecommitdiff
path: root/doc/todo/wishlist:_Prevent_repeated_password_prompts_for_one_command.mdwn
blob: 808b8496f7907b818cb0434d18550d1cb536508e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Simple, when performing various git annex command over ssh, in particular a multi-file get, and using password authentication, git annex will prompt more than once for a user password.  This makes batch updates very inconvenient.

> I'd suggest using ssh-agent, or a passwordless ssh key. Possibly in
> combination with [[git-annex-shell]] if you want to lock down a
> particular ssh key to only being able to use git-annex and git-daemon.
> 
> Combining multiple operations into a single ssh is on the todo list, but
> very far down it. --[[Joey]]

>> OTOH, automatically running ssh in ControlMaster mode (and stopping it
>> at exit) would be useful and not hard thing for git-annex to do.
>> 
>> It'd just need to set the appropriate config options, setting
>> ControlPath to a per-remote socket location that includes git-annex's
>> pid. Then at shutdown, run `ssh -O exit` on each such socket.
>> 
>> Complicated slightly by not doing this if the user has already set up
>> more broad ssh connection caching. --[[Joey]]