Comment 2 for bug 414743

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 414743] Re: paramiko should be default client for Windows

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Martin Pool wrote:
> That makes sense to me. It should be an easy change.
>
> It would be nice to separately file a bug about paramiko using the
> uifactory to confirm the key.
>
> I think there may be a bug for the plink behaviour.
>
> ** Changed in: bzr
> Status: New => Confirmed
>
> ** Changed in: bzr
> Importance: Undecided => High
>

I'm sure that paramiko does use UI factory to get the key.

It uses Auth.get_password() which checks the netrc etc files, and then does:

if password is None:
    if prompt is None:
        # Create a default prompt suitable for most cases
        prompt = '%s' % scheme.upper() + ' %(user)s@%(host)s password'
    # Special handling for optional fields in the prompt
    if port is not None:
        prompt_host = '%s:%d' % (host, port)
    else:
        prompt_host = host
    password = ui.ui_factory.get_password(prompt,
                                          host=prompt_host, user=user)

plink and openssh obviously don't.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqNYEEACgkQJdeBCYSNAANGWACeLYo6AExzyPomJG85382O0XJa
a+QAoI4q5GD7+zn3vXUCGfP5HgRrWriS
=cIJa
-----END PGP SIGNATURE-----