{"id":31967600,"url":"https://github.com/haginara/ssh_config","last_synced_at":"2025-10-14T18:28:25.312Z","repository":{"id":34301767,"uuid":"176073567","full_name":"haginara/ssh_config","owner":"haginara","description":"SSH Client config file manager","archived":false,"fork":false,"pushed_at":"2025-08-04T21:13:40.000Z","size":348,"stargazers_count":42,"open_issues_count":5,"forks_count":14,"subscribers_count":5,"default_branch":"develop","last_synced_at":"2025-09-25T15:42:27.913Z","etag":null,"topics":["ssh","ssh-config"],"latest_commit_sha":null,"homepage":"","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/haginara.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":"2019-03-17T08:13:12.000Z","updated_at":"2025-09-05T04:02:02.000Z","dependencies_parsed_at":"2025-08-04T22:20:42.974Z","dependency_job_id":"f118704d-d36e-4617-b065-ecd029631888","html_url":"https://github.com/haginara/ssh_config","commit_stats":{"total_commits":186,"total_committers":6,"mean_commits":31.0,"dds":0.3924731182795699,"last_synced_commit":"a9ce5fc052289b7fd4068952658bd4c82d9997ff"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/haginara/ssh_config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haginara%2Fssh_config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haginara%2Fssh_config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haginara%2Fssh_config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haginara%2Fssh_config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haginara","download_url":"https://codeload.github.com/haginara/ssh_config/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haginara%2Fssh_config/sbom","scorecard":{"id":452760,"data":{"date":"2025-08-11","repo":{"name":"github.com/haginara/ssh_config","commit":"17f35863087d45f7e93c2870ab5ffaa3a28fca91"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.3,"checks":[{"name":"Code-Review","score":2,"reason":"Found 1/4 approved changesets -- score normalized to 2","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":"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":"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":"Maintained","score":10,"reason":"15 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:28","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:29","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/deploy.yml:1","Warn: no topLevel permission defined: .github/workflows/deploy_test.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml: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/codeql-analysis.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/haginara/ssh_config/codeql-analysis.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/haginara/ssh_config/codeql-analysis.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/haginara/ssh_config/codeql-analysis.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/haginara/ssh_config/codeql-analysis.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/haginara/ssh_config/deploy.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/haginara/ssh_config/deploy.yml/develop?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/haginara/ssh_config/deploy.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy_test.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/haginara/ssh_config/deploy_test.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy_test.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/haginara/ssh_config/deploy_test.yml/develop?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy_test.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/haginara/ssh_config/deploy_test.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/haginara/ssh_config/test.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/haginara/ssh_config/test.yml/develop?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/deploy.yml:19","Warn: pipCommand not pinned by hash: .github/workflows/deploy.yml:20","Warn: pipCommand not pinned by hash: .github/workflows/deploy_test.yml:18","Warn: pipCommand not pinned by hash: .github/workflows/deploy_test.yml:19","Warn: pipCommand not pinned by hash: .github/workflows/test.yml:23","Warn: pipCommand not pinned by hash: .github/workflows/test.yml:24","Info:   0 out of  10 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of   6 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":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/deploy.yml:9"],"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":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 29 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"}},{"name":"Vulnerabilities","score":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-cpwx-vrp4-4pq7","Warn: Project is vulnerable to: GHSA-gmj6-6f8f-6699","Warn: Project is vulnerable to: GHSA-h5c8-rqwp-cp95","Warn: Project is vulnerable to: GHSA-h75v-3vvj-5mfj","Warn: Project is vulnerable to: GHSA-q2x7-8rv6-6q7h"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T08:37:36.209Z","repository_id":34301767,"created_at":"2025-08-19T08:37:36.210Z","updated_at":"2025-08-19T08:37:36.210Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279020354,"owners_count":26086866,"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-14T02:00:06.444Z","response_time":60,"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":["ssh","ssh-config"],"created_at":"2025-10-14T18:28:22.998Z","updated_at":"2025-10-14T18:28:25.275Z","avatar_url":"https://github.com/haginara.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"SSH Config\r\n==========\r\n[![PyPI version](https://badge.fury.io/py/ssh-config.svg)](https://badge.fury.io/py/ssh-config)\r\n[![Build Status](https://travis-ci.org/haginara/ssh_config.svg?branch=master)](https://travis-ci.org/haginara/ssh_config)\r\n\r\nSSH client config file manager\r\n\r\n\r\nWhat is ssh_config?\r\n-------------------\r\nhttps://linux.die.net/man/5/ssh_config\r\n\r\nWhy\r\n---\r\nI don't remember all the servers I am managing. Also all servers require all different configurations to connect to it. I know ~.ssh/config can handle this kind of issue. I want it to handle this file easier.\r\n\r\nYes, I am not sure this is easier way to handle it. but I am trying.\r\n\r\nRequirements\r\n------------\r\n   After 0.0.15, Python27 is not supported.\r\n\r\nPython 3.6 or higher\r\n\r\nInstallation\r\n------------\r\n```\r\npip3 install ssh-config\r\n```\r\n\r\nUsage\r\n-----\r\n```\r\nUsage: ssh-config [OPTIONS] COMMAND [ARGS]...\r\n\r\nOptions:\r\n  -f, --path TEXT       [default: /Users/jonghak.choi/.ssh/config]\r\n  --debug / --no-debug\r\n  --version             Show the version and exit.\r\n  --help                Show this message and exit.\r\n\r\nCommands:\r\n  add         Add SSH Config into config file\r\n  attributes  Print possible attributes for Host\r\n  gen         Generate the ssh config\r\n  get         Get ssh config with name\r\n  ls          Enumerate the configs\r\n  remove\r\n  rename\r\n  ssh         Interative shell for Host\r\n  update      Update the ssh Host config Attribute key=value format\r\n```\r\n\r\nUse-cases\r\n---------\r\n\r\n#### List hosts\r\n```\r\n$ ssh-config ls\r\nserver1\r\nserver_cmd_1\r\nserver_cmd_2\r\nserver_cmd_3\r\n\r\n$ ssh-config ls -l\r\nserver1\t\t\t10.0.2.10\r\nserver_cmd_1\t10.0.1.11\r\nserver_cmd_2\t10.0.1.12\r\nserver_cmd_3\t10.0.1.13\r\n```\r\n\r\n##### Add host\r\n```\r\n$ ssh-config add \"server_cmd_4\" HostName=203.0.113.77 IdentityFile=\"~/.ssh/cmd_id_rsa\"\r\n```\r\n\r\n##### Update host\r\n```\r\n$ ssh-config update \"server_cmd_3\" IdentityFile=\"~/.ssh/cmd_id_rsa\"\r\n```\r\n\r\n##### Remove host\r\n```\r\n$ ssh-config remove \"server_3\"\r\n```\r\n\r\n### Using pattern to get list or update exist hosts\r\n\r\n#### add ssh key to multiple servers\r\n```\r\nssh-config ls | xargs -I{} ssh-copy-id -i ~/.ssh/id_rsa {}\r\n```\r\n\r\n### Export ssh-config to ansible inventory ini format.\r\nhttps://docs.ansible.com/ansible/latest/dev_guide/developing_inventory.html?extIdCarryOver=true\u0026sc_cid=701f2000001OH7EAAW#inventory-script-conventions\r\n```\r\nssh-config inventory --list|--host \u003chostname\u003e\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaginara%2Fssh_config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaginara%2Fssh_config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaginara%2Fssh_config/lists"}