paramiko/paramiko — pull request #209 by sunweaver (2013-09-14 13:03:51+00:00)
Title: Make evaluation of key auth available for two-factor auth analysis.

When authenticating with an explicitly given key_filename, also evaluate
the key based authentication and check if two-factor auth is required.

Without the fix shipped with this pull request, two-factor auth fails
whenever the SSH key is specified via the key_filename parameter in
SSHClient().connect().