{"id":16541950,"url":"https://github.com/itzg/go-ssh-shell","last_synced_at":"2025-07-25T09:38:58.266Z","repository":{"id":144211178,"uuid":"209650947","full_name":"itzg/go-ssh-shell","owner":"itzg","description":"Go module that serves SSH sessions with an interactive shell","archived":false,"fork":false,"pushed_at":"2024-12-11T23:43:01.000Z","size":17,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T15:40:51.424Z","etag":null,"topics":["golang","ssh-server"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/itzg.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}},"created_at":"2019-09-19T21:23:24.000Z","updated_at":"2025-01-14T11:42:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"6cbbfb1b-266e-4a71-969e-e0a5b717ff19","html_url":"https://github.com/itzg/go-ssh-shell","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/itzg%2Fgo-ssh-shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzg%2Fgo-ssh-shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzg%2Fgo-ssh-shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzg%2Fgo-ssh-shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itzg","download_url":"https://codeload.github.com/itzg/go-ssh-shell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238671963,"owners_count":19511188,"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":["golang","ssh-server"],"created_at":"2024-10-11T18:56:18.189Z","updated_at":"2025-02-13T14:31:40.140Z","avatar_url":"https://github.com/itzg.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Go module that serves SSH sessions with an interactive shell. The interactive shell includes support for command history, which can be recalled using the up/down arrow keys.\n\n## Adding module\n\n```\ngo get -u github.com/itzg/go-ssh-shell\n```\n\n## Example\n\n```go\npackage main\n\nimport (\n\tshell \"github.com/itzg/go-ssh-shell\"\n\t\"log\"\n)\n\ntype exampleHandler struct {\n\ts shell.Shell\n}\n\nfunc exampleHandlerFactory(s *shell.Shell) shell.Handler {\n\treturn \u0026exampleHandler{}\n}\n\nfunc (h *exampleHandler) HandleLine(line string) error {\n\tlog.Printf(\"LINE from %s: %s\", h.s.InstanceName(), line)\n\treturn nil\n}\n\nfunc (h *exampleHandler) HandleEof() error {\n\tlog.Printf(\"EOF from %s\", h.s.InstanceName())\n\treturn nil\n}\n\nfunc main() {\n\tsshServer := \u0026shell.SshServer{\n\t\tConfig: \u0026shell.Config{\n\t\t\tBind: \":2222\",\n\t\t\tUsers: map[string]shell.User{\n\t\t\t\t\"user\": {Password: \"notsecure\"},\n\t\t\t},\n\t\t},\n\t\tHandlerFactory: exampleHandlerFactory,\n\t}\n\n\tlog.Fatal(sshServer.ListenAndServe())\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitzg%2Fgo-ssh-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitzg%2Fgo-ssh-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitzg%2Fgo-ssh-shell/lists"}