{"id":18804769,"url":"https://github.com/raravena80/sshrunner","last_synced_at":"2025-08-14T21:15:37.823Z","repository":{"id":96885973,"uuid":"106942186","full_name":"raravena80/sshrunner","owner":"raravena80","description":"Run commands across servers using ssh","archived":false,"fork":false,"pushed_at":"2018-06-17T22:28:19.000Z","size":58,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T18:50:57.761Z","etag":null,"topics":["go","golang","ssh"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raravena80.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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-10-14T16:10:08.000Z","updated_at":"2024-10-17T19:43:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"2bb0675a-d682-441c-920a-fb860a869b76","html_url":"https://github.com/raravena80/sshrunner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/raravena80/sshrunner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raravena80%2Fsshrunner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raravena80%2Fsshrunner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raravena80%2Fsshrunner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raravena80%2Fsshrunner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raravena80","download_url":"https://codeload.github.com/raravena80/sshrunner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raravena80%2Fsshrunner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270482381,"owners_count":24591343,"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","status":"online","status_checked_at":"2025-08-14T02:00:10.309Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["go","golang","ssh"],"created_at":"2024-11-07T22:40:16.204Z","updated_at":"2025-08-14T21:15:37.807Z","avatar_url":"https://github.com/raravena80.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# sshrunner [![CircleCI Build Status](https://circleci.com/gh/raravena80/sshrunner.svg?style=shield)](https://circleci.com/gh/raravena80/sshrunner) [![Coverage Status](https://coveralls.io/repos/github/raravena80/sshrunner/badge.svg?branch=master)](https://coveralls.io/github/raravena80/sshrunner?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/raravena80/sshrunner)](https://goreportcard.com/report/github.com/raravena80/sshrunner) [![Documentation](https://godoc.org/github.com/raravena80/sshrunner?status.svg)](http://godoc.org/github.com/raravena80/sshrunner) [![Apache Licensed](https://img.shields.io/badge/license-Apache2.0-blue.svg)](https://raw.githubusercontent.com/raravena80/sshrunner/master/LICENSE)\nRun commands across servers using ssh\n\n## Usage\n```\nSshrunner runs an ssh command across multiple servers\n\nUsage:\n  sshrunner [flags]\n\nFlags:\n  -s, --agentsocket string   Socket for the ssh agent (default \"/private/tmp/com.apple.launchd.xxx/Listeners\")\n  -c, --command string       Command to run\n      --config string        config file (default is $HOME/.sshrunner.yaml)\n  -h, --help                 help for sshrunner\n  -k, --key string           Ssh key to use for authentication, full path (default \"/Users/raravena/.ssh/id_rsa\")\n  -m, --machines strings     Hosts to run command on\n  -p, --port int             Ssh port to connect to (default 22)\n  -a, --useagent             Use agent for authentication\n  -u, --user string          User to run the command as (default \"raravena\")\n```\n\n## Examples\n\nMakes /tmp/tmpdir in 17.2.2.2 and 17.2.3.2:\n```\n$ sshrunner -c \"mkdir /tmp/tmpdir\" -m 17.2.2.2,17.2.3.2\n```\n\nCreates /tmp/file file in host1 and host2\n```\n$ sshrunner -c \"touch /tmp/file\" -m host1,host2\n```\n\nMoves a file and creates another one in host1 and host2:\n```\n$ sshrunner -c \"mv /tmp/file1 /tmp/file2; touch /tmp/file3\" -m host1,host2\n```\n\nRuns with default in `~/.sshrunner.yaml`\n```\n$ sshrunner\n```\n\n## Config\n\nSample `~/.sshrunner.yaml`\n\n```\nsshrunner:\n  user: ubuntu\n  key: /Users/username/.ssh/id_rsa\n  useagent: true\n  machines:\n    - 172.1.1.1\n    - 172.1.1.2\n    - 172.1.1.3\n    - 172.1.1.4\n    - 172.1.1.5\n  command: sudo rm -f /var/log/syslog.*\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraravena80%2Fsshrunner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraravena80%2Fsshrunner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraravena80%2Fsshrunner/lists"}