{"id":21435000,"url":"https://github.com/carletes/mock-ssh-server","last_synced_at":"2025-10-07T03:14:16.253Z","repository":{"id":47102898,"uuid":"50598560","full_name":"carletes/mock-ssh-server","owner":"carletes","description":"Python mock SSH server for testing purposes","archived":false,"fork":false,"pushed_at":"2023-06-04T14:44:41.000Z","size":57,"stargazers_count":57,"open_issues_count":9,"forks_count":33,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-09-11T23:59:29.302Z","etag":null,"topics":["mock","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/carletes.png","metadata":{"files":{"readme":"README.rst","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":"2016-01-28T16:59:26.000Z","updated_at":"2024-12-26T02:18:35.000Z","dependencies_parsed_at":"2024-06-18T18:23:55.546Z","dependency_job_id":"297acf78-e7cf-48cb-8db0-af69f7304470","html_url":"https://github.com/carletes/mock-ssh-server","commit_stats":{"total_commits":43,"total_committers":14,"mean_commits":"3.0714285714285716","dds":0.627906976744186,"last_synced_commit":"3c87ee8056eb80ce2efc7fc4ed1c39c53151bf64"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/carletes/mock-ssh-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carletes%2Fmock-ssh-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carletes%2Fmock-ssh-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carletes%2Fmock-ssh-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carletes%2Fmock-ssh-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carletes","download_url":"https://codeload.github.com/carletes/mock-ssh-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carletes%2Fmock-ssh-server/sbom","scorecard":{"id":265872,"data":{"date":"2025-08-11","repo":{"name":"github.com/carletes/mock-ssh-server","commit":"3c87ee8056eb80ce2efc7fc4ed1c39c53151bf64"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Code-Review","score":4,"reason":"Found 8/18 approved changesets -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/publish.yaml:1","Warn: no topLevel permission defined: .github/workflows/test.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yaml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/carletes/mock-ssh-server/publish.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yaml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/carletes/mock-ssh-server/publish.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/carletes/mock-ssh-server/test.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/carletes/mock-ssh-server/test.yaml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/publish.yaml:20","Warn: pipCommand not pinned by hash: .github/workflows/publish.yaml:21","Warn: pipCommand not pinned by hash: .github/workflows/test.yaml:28","Warn: pipCommand not pinned by hash: .github/workflows/test.yaml:29","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2018-19 / GHSA-232r-66cg-79px","Warn: Project is vulnerable to: PYSEC-2008-8 / GHSA-wqmm-q65g-2hqr","Warn: Project is vulnerable to: PYSEC-2022-166"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 23 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T12:00:42.423Z","repository_id":47102898,"created_at":"2025-08-17T12:00:42.423Z","updated_at":"2025-08-17T12:00:42.423Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278457759,"owners_count":25990012,"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","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["mock","python"],"created_at":"2024-11-22T23:42:11.572Z","updated_at":"2025-10-07T03:14:16.224Z","avatar_url":"https://github.com/carletes.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"mock-ssh-server - An SSH server for testing purposes\n====================================================\n\n``mock-ssh-server`` packs a Python context manager that implements an SSH\nserver for testing purposes. It is built on top of `paramiko`_, so it does\nnot need OpenSSH binaries to be installed.\n\n\nSample usage\n------------\n\nAs a `py.test`_ fixture::\n\n    import os\n\n    from pytest import yield_fixture\n\n    import mockssh\n\n\n    @yield_fixture()\n    def server():\n        users = {\n            \"sample-user\": \"/path/to/user-private-key\",\n        }\n        with mockssh.Server(users) as s:\n            yield s\n\n\n    def test_ssh_session(server):\n        for uid in server.users:\n            with server.client(uid) as c:\n                _, stdout, _ = c.exec_command(\"ls /\")\n                assert stdout.read()\n\n    def test_sftp_session(server):\n        for uid in server.users:\n            target_dir = tempfile.mkdtemp()\n            target_fname = os.path.join(target_dir, \"foo\")\n            assert not os.access(target_fname, os.F_OK)\n\n            with server.client(uid) as c:\n                sftp = c.open_sftp()\n                sftp.put(__file__, target_fname, confirm=True)\n                assert os.access(target_fname, os.F_OK)\n\n\n.. _paramiko: http://www.paramiko.org/\n.. _py.test:  http://pytest.org/latest/\n.. image:: https://travis-ci.org/carletes/mock-ssh-server.svg\n\t   :target: https://travis-ci.org/carletes/mock-ssh-server\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarletes%2Fmock-ssh-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarletes%2Fmock-ssh-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarletes%2Fmock-ssh-server/lists"}