{"id":21383121,"url":"https://github.com/bashkirtsevich-llc/cazador","last_synced_at":"2025-03-16T11:23:41.029Z","repository":{"id":53533770,"uuid":"171730090","full_name":"bashkirtsevich-llc/cazador","owner":"bashkirtsevich-llc","description":"Cazador — the ssh-tunnel","archived":false,"fork":false,"pushed_at":"2021-03-25T22:29:14.000Z","size":31,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T23:24:38.889Z","etag":null,"topics":["asyncio","asyncio-server","asyncssh","python","python3","python37","ssh","ssh-client","ssh-router","ssh-server"],"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/bashkirtsevich-llc.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}},"created_at":"2019-02-20T18:49:01.000Z","updated_at":"2019-08-22T10:19:09.000Z","dependencies_parsed_at":"2022-08-20T13:01:04.728Z","dependency_job_id":null,"html_url":"https://github.com/bashkirtsevich-llc/cazador","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashkirtsevich-llc%2Fcazador","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashkirtsevich-llc%2Fcazador/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashkirtsevich-llc%2Fcazador/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashkirtsevich-llc%2Fcazador/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bashkirtsevich-llc","download_url":"https://codeload.github.com/bashkirtsevich-llc/cazador/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243859336,"owners_count":20359513,"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":["asyncio","asyncio-server","asyncssh","python","python3","python37","ssh","ssh-client","ssh-router","ssh-server"],"created_at":"2024-11-22T11:20:03.169Z","updated_at":"2025-03-16T11:23:41.006Z","avatar_url":"https://github.com/bashkirtsevich-llc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cazador — the ssh-tunnel\n\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/bb4a845e28fc417aab4fbcfd5cb857ae)](https://www.codacy.com/app/bashkirtsevich/cazador?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=bashkirtsevich-llc/cazador\u0026amp;utm_campaign=Badge_Grade)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/bashkirtsevich-llc/cazador/master/.logo.png\"\u003e\n\u003c/p\u003e\n\nCazador — is a simply ssh-tunnel for simplify connections. \n\nCan be used for:\n\n1.\texperiments on localhost or local area network;\n2.\tsimplify access to remote ssh.\n\n_Disclaimer_:\n\u003e **WARNING!**\n\u003e\n\u003e This software provide ssh-tunneling and password storing, it can be potentially dangerous! It's not recommended for using in real systems.\n\n## Config\n\nConfig file — is a simply yml file with sections:\n*\t`config` — application parameters;\n  *\t`port` — server listen port (default `22`);\n  *\t`allow_empty_passwords` — enable users without password;\n  *\t`host_keys` — list of OpenSSH key-files;\n*\t`users` — dictionary with `user_login: \"password_hash\"` pairs;\n*\t`connections` — dictionary with ssh login credentials, each element contains next structures:\n  *\t`host` — IP-address or hostname of destination ssh-server;\n  *\t`port` — listen port of destination ssh-server (default `22`);\n  *\t`username` — user login;\n  *\t`password` — user password;\n*\t`commands` — dictionary with names and shell-commands lists;\n*\t`routes` — dictionary contains structures which provide relationship between `user` and `connection` with `command`.\n  \n### `config.yml` example\n\n```yaml\nconfig:\n  port: 8022\n  allow_empty_passwords: yes\n  host_keys:\n  - ssh_host_key\nusers:\n  alpine:\n  debian:\n  admin: \"5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8\"  # sha256 of \"password\"\nconnections:\n  docker:\n    host: \"127.0.0.1\"\n    username: \"root\"\n    password: \"password\"\n  local:\n    host: \"localhost\"\n    port: 22\n    username: \"user1\"\n    password: \"password\"\ncommands:\n  alpine_docker:\n  - \"docker run -it --rm alpine ash\"\n  debian_docker:\n  - \"docker run -it --rm debian bash\"\nroutes:\n  alpine:\n    connection: docker\n    command: alpine_docker\n  debian:\n    connection: docker\n    command: debian_docker\n  admin:\n    connection: local\n```\n\n## Startup\n\nRequired `Python 3.7+`\n\n1.\t`pip install -r requirements`;\n2.\t`exports CONFIG_PATH=\"/path/to/your/config.yml\"`;\n3.\t`python app.py`.\n\nOr use docker\n\n1.\t`docker build -t cazador .`;\n2.\t`docker run -d -p 22:22 -e CONFIG_PATH=/app/config.yml -v $(pwd)/config.yml:/app/config.yml:ro -v $(pwd)/ssh_host_key:/app/ssh_host_key:ro cazador`;\n\n# MIT-License\n\n\u003e Copyright (c) 2019 Bashkirtsevich LLC\n\u003e \n\u003e Permission is hereby granted, free of charge, to any person obtaining a copy\n\u003e of this software and associated documentation files (the \"Software\"), to deal\n\u003e in the Software without restriction, including without limitation the rights\n\u003e to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\u003e copies of the Software, and to permit persons to whom the Software is\n\u003e furnished to do so, subject to the following conditions:\n\u003e \n\u003e The above copyright notice and this permission notice shall be included in all\n\u003e copies or substantial portions of the Software.\n\u003e \n\u003e THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\u003e IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\u003e FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\u003e AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\u003e LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\u003e OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n\u003e SOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbashkirtsevich-llc%2Fcazador","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbashkirtsevich-llc%2Fcazador","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbashkirtsevich-llc%2Fcazador/lists"}