{"id":20625344,"url":"https://github.com/nemmusu/ssh-executor","last_synced_at":"2026-04-24T12:30:58.689Z","repository":{"id":216156573,"uuid":"740606205","full_name":"nemmusu/ssh-executor","owner":"nemmusu","description":"SSH Executor is a simple Python module designed to execute SSH commands on various servers either concurrently or sequentially. It facilitates the execution of commands using credentials read from a configuration file.","archived":false,"fork":false,"pushed_at":"2024-01-10T15:08:41.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T06:08:56.824Z","etag":null,"topics":["client","commands","config","configparser","connections","execute","management","multiple","multithreading","python","python3","ssh","thread"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nemmusu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2024-01-08T17:28:53.000Z","updated_at":"2024-11-23T23:02:11.000Z","dependencies_parsed_at":"2024-01-08T19:21:25.690Z","dependency_job_id":null,"html_url":"https://github.com/nemmusu/ssh-executor","commit_stats":null,"previous_names":["nemmusu/ssh-executor"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nemmusu%2Fssh-executor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nemmusu%2Fssh-executor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nemmusu%2Fssh-executor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nemmusu%2Fssh-executor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nemmusu","download_url":"https://codeload.github.com/nemmusu/ssh-executor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242394445,"owners_count":20120941,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client","commands","config","configparser","connections","execute","management","multiple","multithreading","python","python3","ssh","thread"],"created_at":"2024-11-16T13:09:20.949Z","updated_at":"2026-04-24T12:30:58.651Z","avatar_url":"https://github.com/nemmusu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Readme\n\n[Readme: Italiano](./README_IT.md)\n\n[Readme: English](./README.md)\n\n# SSH Executor\n\nThis is a simple Python module that allows you to execute SSH commands on different servers either in parallel or sequentially. Credentials and commands to be executed are read from a configuration file.\n\n## Installation\n\nThe module uses the `paramiko`, `configparser` and `threading` libraries. You can install them with pip:\n\n```\npip install paramiko configparser\n```\n\n## Configuration file\n\nThe module reads a `config.ini` configuration file which must be structured as follows (you can add more servers using this syntax):\n\n```ini\n[configuration]\nthread = True\n\n[server1]\nuser = username\npass = password\nport = 22\nip = 192.168.1.1\ncommands = command1, command2, command3\n\n[server2]\nuser = username\npass = password\nport = 22\nip = 192.168.1.2\ncommands = command1, command2, command3\n```\n\nThe `[configuration]` section contains the `thread` option.\nIf `thread` is set to `True`, the commands will be executed in parallel on each server.\nIf `thread` is set to `False` or not specified, the commands will be executed sequentially.\n\nThe other sections represent the different servers on which to execute the commands. Each section must contain the following options:\n\n- `user`: the username for the SSH connection.\n- `pass`: the password for the SSH connection.\n- `port`: the port for the SSH connection (optional, default is 22).\n- `ip`: the IP address of the server.\n- `commands`: a list of comma-separated commands to be executed on the server.\n\n## Usage\n\nMake sure you have set the parameters of `config.ini` correctly and run the command:\n\n```\npython ssh_executor.py\n```\n\n## Errors\n\nIf errors are detected during the SSH connection or command execution, they will be printed on the console. These include authentication errors, SSH connection errors, and errors during command execution.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnemmusu%2Fssh-executor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnemmusu%2Fssh-executor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnemmusu%2Fssh-executor/lists"}