Password caching

John Arbash Meinel john at arbash-meinel.com
Tue Nov 28 14:52:54 GMT 2006


Erik Bågfors wrote:
> This is a bad idea, but....
> isn't it possible to use "sftp://user:password@host/path/to/branch ?
> 
> /Erik

Not if you spawn an ssh subprocess, rather than using the paramiko builtin.

Which also brings up a problem in any password caching scheme that we
implement. Namely that 'ssh' itself does not provide an easy way to pass
it the password. So even if bzr remember the password, how would it pass
it on? 'ssh' grabs direct access to the terminal, rather than going
through stdin, so you would have to somehow create a pseudo TTY for ssh
to use, etc.

Alternatively, we could do something like ssh+paramiko:// or maybe an
ENV var to force it to use the paramiko implementation, which may be
slower, and won't read ~/.ssh/config (or at least not all of it), but
might let you use a password.

John
=:->


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20061128/501684fe/attachment.pgp 


More information about the bazaar mailing list