paramiko / paramiko/paramiko

auth_timeout is not used?

Open
#2,207 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature request eval needed
Dominant language
Python
Stars
9.9k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

Hi.

In SSHClient to which was given a 200 s auth_timeout in connect() that timeout is not used:

    self._auth(
        username,
        password,
        pkey,
        key_filenames,
        allow_agent,
        look_for_keys,
        gss_auth,
        gss_kex,
        gss_deleg_creds,
        t.gss_host,
        passphrase,
    )

so this _auth function times out before 200 s.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in SSHClient.connect at the auth_timeout argument and trace the _auth call shown in the issue. Determine where that timeout is expected to flow, then verify that authentication respects the supplied 200-second value and add or update coverage for the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.