{"id":27378012,"url":"https://github.com/imatakatsu/simple-ssh","last_synced_at":"2025-04-13T13:32:48.557Z","repository":{"id":287273253,"uuid":"964191934","full_name":"imatakatsu/simple-ssh","owner":"imatakatsu","description":"easy to use ssh server implementation","archived":false,"fork":false,"pushed_at":"2025-04-10T20:50:04.000Z","size":0,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T21:34:12.192Z","etag":null,"topics":["golang","simple-ssh","ssh","ssh-server","ssh-server-library"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imatakatsu.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,"zenodo":null}},"created_at":"2025-04-10T20:39:21.000Z","updated_at":"2025-04-10T20:50:07.000Z","dependencies_parsed_at":"2025-04-10T21:44:18.497Z","dependency_job_id":null,"html_url":"https://github.com/imatakatsu/simple-ssh","commit_stats":null,"previous_names":["imatakatsu/simple-ssh"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imatakatsu%2Fsimple-ssh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imatakatsu%2Fsimple-ssh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imatakatsu%2Fsimple-ssh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imatakatsu%2Fsimple-ssh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imatakatsu","download_url":"https://codeload.github.com/imatakatsu/simple-ssh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248721143,"owners_count":21151052,"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","simple-ssh","ssh","ssh-server","ssh-server-library"],"created_at":"2025-04-13T13:31:47.039Z","updated_at":"2025-04-13T13:32:48.546Z","avatar_url":"https://github.com/imatakatsu.png","language":"Go","readme":"## simple ssh server library\n\nexample:\n```golang\npackage main\n\nimport (\n\t\"fmt\"\n\t\"time\"\n\n\tssh \"github.com/imatakatsu/simple-ssh\"\n)\n\nvar srv ssh.Serv\n\nfunc main() {\n\terr := srv.Init(terminal)\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\tsrv.Listen(\":2222\")\n}\n\nfunc terminal(conn ssh.SshConn) {\n\tdefer conn.Close()\n\tconn.Writeln(\"\\x1bcWelcome to Simple SSH Example!!! wooow\")\n\tconn.Writef(\"here u can write (some data: %v) formatted strings!!\\r\\n\", time.Now())\n\tconn.Write(\"\\r\\nit`s an ssh echo server, lolll\\r\\n\\r\\n\")\n\tfor {\n\t\tans, err := conn.Readline()\n\t\tif err != nil {\n\t\t\tfmt.Println(err)\n\t\t\treturn\n\t\t}\n\t\tif ans == \"exit\" || ans == \"q\" {\n\t\t\tconn.Writeln(\"byee\")\n\t\t\treturn\n\t\t}\n\t\tconn.Writeln(\"you wrote:\", ans)\n\t}\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimatakatsu%2Fsimple-ssh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimatakatsu%2Fsimple-ssh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimatakatsu%2Fsimple-ssh/lists"}