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/
-----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: get_password( prompt,
host=prompt_ host, user=user)
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.
plink and openssh obviously don't.
John enigmail. mozdev. org/
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkq NYEEACgkQJdeBCY SNAANGWACeLYo6A ExzyPomJG85382O 0XJa zn3vXUCGfP5HgRr WriS
a+QAoI4q5GD7+
=cIJa
-----END PGP SIGNATURE-----