{"id":13586224,"url":"https://github.com/krsmanovic/mikrotik-distributed-ssh","last_synced_at":"2025-07-28T05:36:31.449Z","repository":{"id":162759461,"uuid":"100371793","full_name":"krsmanovic/mikrotik-distributed-ssh","owner":"krsmanovic","description":"Python script that connects to MikroTik routers via ssh and executes list of commands. Both inventory and command lists are loaded from external files. Create separate log entries for successful connections and errors.","archived":false,"fork":false,"pushed_at":"2021-01-12T20:34:07.000Z","size":14,"stargazers_count":23,"open_issues_count":1,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-02-14T21:24:58.857Z","etag":null,"topics":["inventory","mikrotik","mikrotik-routers","python","ssh","ssh-keys"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/krsmanovic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-15T11:44:05.000Z","updated_at":"2024-08-01T16:32:11.396Z","dependencies_parsed_at":null,"dependency_job_id":"ffb2963c-3b21-4077-bfbe-2c09bde8d348","html_url":"https://github.com/krsmanovic/mikrotik-distributed-ssh","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krsmanovic%2Fmikrotik-distributed-ssh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krsmanovic%2Fmikrotik-distributed-ssh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krsmanovic%2Fmikrotik-distributed-ssh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krsmanovic%2Fmikrotik-distributed-ssh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krsmanovic","download_url":"https://codeload.github.com/krsmanovic/mikrotik-distributed-ssh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249024025,"owners_count":21200011,"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":["inventory","mikrotik","mikrotik-routers","python","ssh","ssh-keys"],"created_at":"2024-08-01T15:05:24.642Z","updated_at":"2025-04-15T07:21:17.335Z","avatar_url":"https://github.com/krsmanovic.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# MikroTik SSH script based on Python \"paramiko\" module\n\nThis is a tool for executing many MikroTik commands from external `commands` file to many MikroTik routers listed in `hosts` file. Using ssh keys method is strongly advised! Remember to remove all credentials left in clear text if you opt in for that type of connection!\n\nLog files `error.log` or `success.log` are appended depending on the result of the script execution.\n\n## 1) Setup the inventory and commands\n\nPopulate the files `hosts` (inventory) and `commands` according to your task. Sample files are provided in `/scripts` folder together with the source code.\n\n## 2) Enter the credentials within the script\n\nEdit the `mt_username` and `ssh_key` variables according to your environment.\n\nIt is strongly advised never to keep credentials in clear text and use ssh keys whenever possible! If you opted in for using clear text passowrd with `mt_password` variable, remember to remove it after you are finished with your work!\n\n## 3) Run the script\n\nStart the script with\n```\npython mikrotik-ssh.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrsmanovic%2Fmikrotik-distributed-ssh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrsmanovic%2Fmikrotik-distributed-ssh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrsmanovic%2Fmikrotik-distributed-ssh/lists"}