{"id":16934628,"url":"https://github.com/codeskyblue/sshg","last_synced_at":"2025-04-11T18:53:33.399Z","repository":{"id":161342531,"uuid":"636054321","full_name":"codeskyblue/sshg","owner":"codeskyblue","description":"ssh client with quick search and remote config","archived":false,"fork":false,"pushed_at":"2023-07-13T03:15:39.000Z","size":20,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-16T00:04:52.459Z","etag":null,"topics":[],"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/codeskyblue.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}},"created_at":"2023-05-04T03:09:05.000Z","updated_at":"2024-02-29T01:12:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"69a8e0f5-c938-4f9c-899f-710c1f52264a","html_url":"https://github.com/codeskyblue/sshg","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeskyblue%2Fsshg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeskyblue%2Fsshg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeskyblue%2Fsshg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeskyblue%2Fsshg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeskyblue","download_url":"https://codeload.github.com/codeskyblue/sshg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248464539,"owners_count":21108238,"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":[],"created_at":"2024-10-13T20:52:36.694Z","updated_at":"2025-04-11T18:53:33.374Z","avatar_url":"https://github.com/codeskyblue.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sshg\n先说为什么起这个名字呢？\n因为我之前起的几个名字sshx, sshs 都被别人捷足先登了，而且项目写的还不错。可他们的项目又不能满足我快速选择要连接的设备和远程配置的需求，所以我就只起sshg这个名字了\n\n[![codecov](https://codecov.io/gh/codeskyblue/sshg/branch/master/graph/badge.svg?token=RUS38DVMCR)](https://codecov.io/gh/codeskyblue/sshg)\n[![PyPI version](https://badge.fury.io/py/sshg.svg)](https://badge.fury.io/py/sshg)\n\n## 支持的功能\n- [x] 支持将ip,user,password写入到配置文件中，并快速的键盘选择上下选择功能(VIM的hj也支持)\n- [x] 支持ssh跳板机的功能\n- [ ] 远程配置的功能\n\n## 安装\n```bash\npip3 install sshg\n```\n\n## 使用\n创建配置文件 `~/.sshg.yml`\n\n文件内容例子\n\n```yaml\n- name: inner-server\n  user: appuser\n  host: 192.168.8.35\n  port: 22\n  password: 123456 # login password\n  via:\n    user: via-server\n    host: 10.0.0.38\n    port: 2222\n- name: dev server fully configured\n  user: appuser\n  host: 192.168.1.1\n  keypath: ~/.ssh/id_rsa\n  password: abcdefghijklmn # passphrase\n  callback-shells:\n    - { delay: 1, cmd: \"uptime\" }\n    - { cmd: \"echo 1\" }\n- name: dev group\n  port: 22 # children will inherit all the configs as default\n  children:\n    - user: pc01\n      host: 192.168.3.1\n    - user: pc02\n      host: 192.168.3.2\n    - host: 192.168.3.3 # leave user empty will set to current user\n```\n\n```bash\n$ sshg\nUse the arrow keys to navigate (support vim style): ↓ ↑ \n✨ Select host\n  ➤ inner-server appuser@192.168.8.35\n    dev server fully configured appuser@192.168.1.1\n    dev group\n\n# specify config file\n$ sshg --conf ~/.sshg.yml\n```\n\n\n## 开发者文档\n\n```bash\n# 没安装就装一下，项目依赖poetry发布\n# pip install poetry\n\npoetry self add \"poetry-dynamic-versioning[plugin]\"\npoetry publish --build\n\n# 进入到项目的虚拟环境\npoetry shell\n```\n\n\n# Refs\n- https://poetry.eustace.io/docs/\n- https://pypi.org/project/poetry-dynamic-versioning/\n- https://github.com/yinheli/sshw UI风格基本都是参考这个项目\n- https://github.com/WqyJh/sshx 本来用这个名字的，发现跟它重复了\n- https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/ 如何使用Github Actions发布\n\n# LICENSE\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeskyblue%2Fsshg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeskyblue%2Fsshg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeskyblue%2Fsshg/lists"}