← Back to team overview

bzr-explorer-dev team mailing list archive

Re: [Bug 394599] Re: Push to bzr+ssh prompts for key password in shell

 

John A Meinel пишет:
> It is difficult to do. If you only used 'paramiko' as the ssh agent, it
> would probably be pretty easy to trap in and have your own dialogs.
> 
> If you look at bzrlib/transport/ssh.py you can see "_paramiko_auth" which goes through our existing:
>   auth = config.AuthenticationConfig()
> ...
>   auth.get_password(...)
> 
> If you trace through that you see it ends up at:
> password = ui.ui_factory.get_password(prompt,
>                                       host=prompt_host, user=user)
> 
> Which is how you could inject your own ui_factory to prompt the user.

And QBzr handles this well. For all q-dialogs when we start actual command we can ask the user for
password on ssh access. But other (native) ssh implementations tend to handle ssh password themself.

> I thought there was a way to have a custom prompt for ssh (at least for
> ssh-agent) given that is what happens Ubuntu desktop. I can't seem to
> find an environment variable. But I certainly thought there was
> something you could do to say "get your authentication from running this
> program."
> 
> Think 'pinentry' program for gpg-agent, and something similar to that
> for ssh-agent. I don't know what it would be, though :(.

I think ssh-agent will be the better solution here, or bzr-explorer have
to force usage of paramiko.

-- 
Push to bzr+ssh prompts for key password in shell
https://bugs.launchpad.net/bugs/394599
You received this bug notification because you are a member of Bazaar
Explorer Developers, which is the registrant for Bazaar Explorer.

Status in Bazaar Explorer: Triaged

Bug description:
My ssh key has a password. When I push to a remoter server over bzr+ssh using bzr explorer the password prompt appears in the shell used to launch "bzr explorer" rather than in the explorer interface. Unless you notice this, it just appears as if bzr explorer has hung.



References