paramiko / paramiko/paramiko

Feature request: built-in parallelization

Open
#1,151 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

It would be fantastic if Paramiko natively supported parallelized multiple connections in much the similar way pdsh does.

Presumably, a connection list could be built in dict form via the following:

hosts = {namedhost1: {'host': str(SOMEHOST),
                                     'port': int(SOMEPORT),  # if 'port' key not present, 22
                                     'key': KEY_OBJ_or_PATH_TO_PRIVKEY,  # if not specified and no password, try all privkeys
                                     'password': str(PASSWD)},  # not needed if key auth, etc.
              namedhost2: {'host': str(ANOTHERHOST). ....

etc.

and then this object could be passed via, say, paramiko.SSHParallelClient().connect(hosts, ...)

thoughts?

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 with the proposed hosts mapping and the suggested paramiko.SSHParallelClient().connect(hosts, ...) entry point, then compare the requested behavior with pdsh. Done would require an agreed scope for parallel connections, authentication options, defaults, and observable results; the issue does not define those acceptance criteria.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.