{"id":21424349,"url":"https://github.com/gomodules/ssh","last_synced_at":"2026-01-03T15:05:10.657Z","repository":{"id":39908056,"uuid":"310195744","full_name":"gomodules/ssh","owner":"gomodules","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-04T21:48:32.000Z","size":1723,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T07:13:57.660Z","etag":null,"topics":[],"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/gomodules.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":"2020-11-05T05:06:03.000Z","updated_at":"2022-09-24T05:52:45.000Z","dependencies_parsed_at":"2024-06-20T00:13:38.383Z","dependency_job_id":"89400762-7922-4732-8655-79a7430e301d","html_url":"https://github.com/gomodules/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/gomodules%2Fssh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gomodules%2Fssh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gomodules%2Fssh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gomodules%2Fssh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gomodules","download_url":"https://codeload.github.com/gomodules/ssh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243933374,"owners_count":20370988,"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":[],"created_at":"2024-11-22T21:21:20.525Z","updated_at":"2026-01-03T15:05:10.626Z","avatar_url":"https://github.com/gomodules.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ssh\n\nPackage ssh provides a GOlang library for copying files and running commands over SSH\n\n## Example\n\n```go\npackage main\n\nimport (\n\t\"log\"\n\t\"os\"\n\n\t\"gomodules.xyz/ssh\"\n)\n\nfunc main() {\n\tsigner, err := ssh.MakePrivateKeySignerFromFile(os.ExpandEnv(\"$HOME/.ssh/id_rsa\"))\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tsout, serr, code, err := sshtools.Exec(\"ls -l /\", \"root\", \"\u003caddr\u003e:\u003cport\u003e\", signer)\n\tlog.Println(sout, serr, code, err)\n}\n```\n\n## Acknowledgement\n\nThis library is based on code from:\n\n- https://github.com/kubernetes/kubernetes/tree/master/pkg/ssh\n- https://github.com/YuriyNasretdinov/GoSSHa\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgomodules%2Fssh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgomodules%2Fssh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgomodules%2Fssh/lists"}