{"id":18237513,"url":"https://github.com/mdevolde/my_ssh_service","last_synced_at":"2026-02-06T22:02:38.108Z","repository":{"id":260821519,"uuid":"882316890","full_name":"mdevolde/my_ssh_service","owner":"mdevolde","description":"A Windows SSH service to run an SSH connection in the background.","archived":false,"fork":false,"pushed_at":"2024-11-06T15:29:16.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-25T20:51:17.507Z","etag":null,"topics":["rust","service","ssh","windows"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/mdevolde.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":"2024-11-02T13:56:14.000Z","updated_at":"2025-01-28T19:26:07.000Z","dependencies_parsed_at":"2025-04-11T11:41:20.157Z","dependency_job_id":"aa809330-d952-40de-9531-eca021bfb41a","html_url":"https://github.com/mdevolde/my_ssh_service","commit_stats":null,"previous_names":["mdevolde/my_ssh_service"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mdevolde/my_ssh_service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdevolde%2Fmy_ssh_service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdevolde%2Fmy_ssh_service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdevolde%2Fmy_ssh_service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdevolde%2Fmy_ssh_service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdevolde","download_url":"https://codeload.github.com/mdevolde/my_ssh_service/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdevolde%2Fmy_ssh_service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29178551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T20:14:21.878Z","status":"ssl_error","status_checked_at":"2026-02-06T20:14:21.443Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["rust","service","ssh","windows"],"created_at":"2024-11-05T02:06:19.697Z","updated_at":"2026-02-06T22:02:38.093Z","avatar_url":"https://github.com/mdevolde.png","language":"Rust","readme":"# My SSH service\nA Windows SSH service to run an SSH connection in the background.\n\n## Requirements\nHave  [everything you need to compile Rust](https://www.rust-lang.org/tools/install).\n\n## How to build and use\nTo build and run the service, follow these steps (be sure to replace generic values with your own data in the commands):\n```powershell\ncargo b -r\nsc.exe create \"mysshservice\" binPath=\"\"\"C:\\path\\to\\your\\generated\\exe\\my_ssh_service.exe\"\" -N -T -R 9999:localhost:9999 user@ip\" obj=\"DOMAIN\\Username\" password=\"UserPassword\" depend=\"Tcpip/nsi\" DisplayName=\"My SSH service\" start=delayed-auto # needs to be executed by an admin\nsc.exe description \"mysshservice\" \"A Windows SSH service to run an SSH connection in the background.\" # needs to be executed by an admin\nsc.exe start mysshservice # needs to be executed by an admin\n```\nThis example runs a reverse port forwarding on port 9999 in the background, but you can pass any arguments you like to SSH.\nObviously, the ssh connection must be able to be established using a key, without the need to enter a passphrase. It's the reason why the service is started using a user account, to access to the user ssh keys.\nThis service will start automatically when the computer boots up, after a lot of important services have started.\n\nIf you want to exceptionally run the service with other arguments (a different port for exemple), you proceed as follows:\n```powershell\nsc.exe stop \"mysshservice\" # needs to be executed by an admin\nsc.exe start mysshservice -N -T -R 9998:localhost:9998 user@ip # needs to be executed by an admin\n```\nWhen the computer boots up, the service will start with the default arguments.\n\n## How to stop the service and check its status\nTo stop the service, execute this command:\n```powershell\nsc.exe stop \"mysshservice\" # needs to be executed by an admin\n```\nTo check the status of the service, you need to run this command:\n```powershell\nsc.exe query \"mysshservice\"\n```\n\n## Check the logs of the service\nThe logs of the service are available in `%ProgramData%\\mysshservice\\logs\\`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdevolde%2Fmy_ssh_service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdevolde%2Fmy_ssh_service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdevolde%2Fmy_ssh_service/lists"}