{"id":13490026,"url":"https://github.com/karfield/ssh2go","last_synced_at":"2026-01-08T06:57:37.511Z","repository":{"id":57515129,"uuid":"56411547","full_name":"karfield/ssh2go","owner":"karfield","description":"go wrapper for libssh (both client and server side)","archived":false,"fork":false,"pushed_at":"2016-04-27T21:31:42.000Z","size":67,"stargazers_count":54,"open_issues_count":1,"forks_count":24,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-31T03:35:31.711Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/karfield.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}},"created_at":"2016-04-17T00:18:48.000Z","updated_at":"2024-07-22T19:56:37.000Z","dependencies_parsed_at":"2022-08-30T01:41:42.173Z","dependency_job_id":null,"html_url":"https://github.com/karfield/ssh2go","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/karfield%2Fssh2go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karfield%2Fssh2go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karfield%2Fssh2go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karfield%2Fssh2go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karfield","download_url":"https://codeload.github.com/karfield/ssh2go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245978200,"owners_count":20703675,"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-07-31T19:00:39.464Z","updated_at":"2026-01-08T06:57:37.463Z","avatar_url":"https://github.com/karfield.png","language":"Go","readme":"\n# libssh to go\n\nlibssh is a mulitplatform C library implementing the SSHv2 and SSHv1 protocol on client and server side. With libssh, you can remotely execute programs, transfer files, use a secure and transparent tunnel, manage public keys and much more. [www.libssh.org](https://www.libssh.org)\n\nssh2go is Go bindings for libssh. The `master` branch follows the latest libssh [code](https://git.libssh.org/projects/libssh.git). \n\n# Installing\n\nssh2go depends on libssh, so make sure you've installed the **Lastest** git version of libssh\n\n## For Mac OS (darwin)\n\n### use homebrew\n\n```\nbrew install --HEAD https://raw.githubusercontent.com/karfield/ssh2go/master/libssh.rb\n\ngo get github.com/karfield/ssh2go\n```\n\nIf you have installed `libssh` but not the latest version in Mac OS, you should\nreinstall it:\n\n```\nbrew reinstall --HEAD https://raw.githubusercontent.com/karfield/ssh2go/master/libssh.rb\nbrew link --force libssh\n```\n\n## Build from scratch\n\nIf you want to build the libssh from scratch, use the './install-libs.sh' to install the prequisitements.\n\n```\ngo get -d github.com/karfield/ssh2go\n\ncd $GOPATH/src/github.com/karfield/ssh2go\n\ngit submodule update --init --recursive\n\n./install-libs.sh\n\ngo install\n```\n\n# Examples\n\n## simple-sshd\n\nCustom a sshd, and run it locally.\n\nTry now or read the [code](https://github.com/karfield/ssh2go/blob/master/examples/ssh2go-simple-sshd/main.go)\n\n```\ngo install github.com/karfield/ssh2go/examples/ssh2go-simple-sshd\n```\n\nsee some options:\n\n| option | shortcuts | default | description |\n|---|---|---|---|\n| port | p |2222|Set the port to bind.\n| hostkey | k ||Set the hostkey file path.\n| dsakey | d ||Set the dsa key.\n| rsakey | r ||Set the rsa key.\n| verbose |V ||Get verbose output.\n\nrun it:\n\n```\nssh2go-simple-sshd --dsakey=/path/to/your/dsakey --rsakey=/path/to/your/rsakey --port 8888 -V\n```\n\nthen open another terminal, run as a client:\n\n```\nssh localhost -p 8888 -l test\n```\n\n## multi-sshd\n\nlike `simple-sshd`, to run as server:\n\n```\nssh2go-multi-sshd --dsakey=/path/to/your/dsakey --rsakey=/path/to/your/rsakey --port 8888 -V\n```\n\nNote:\n\ngranted user and password: test / test\n\n","funding_links":[],"categories":["tools"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarfield%2Fssh2go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarfield%2Fssh2go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarfield%2Fssh2go/lists"}