{"id":51038980,"url":"https://github.com/ipmartnetwork/ipmart-ssh-tunnel","last_synced_at":"2026-06-22T09:01:35.456Z","repository":{"id":229964688,"uuid":"778101430","full_name":"iPmartNetwork/iPmart-ssh-tunnel","owner":"iPmartNetwork","description":"ipmart_ssh_reverse","archived":false,"fork":false,"pushed_at":"2024-05-22T15:40:28.000Z","size":62,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-29T01:25:03.747Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iPmartNetwork.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":"2024-03-27T04:33:46.000Z","updated_at":"2024-06-06T17:28:28.000Z","dependencies_parsed_at":"2024-05-22T16:53:03.049Z","dependency_job_id":null,"html_url":"https://github.com/iPmartNetwork/iPmart-ssh-tunnel","commit_stats":null,"previous_names":["ipmartnetwork/reverse_tunnel","ipmartnetwork/ipmart-ssh-tunnel"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iPmartNetwork/iPmart-ssh-tunnel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iPmartNetwork%2FiPmart-ssh-tunnel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iPmartNetwork%2FiPmart-ssh-tunnel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iPmartNetwork%2FiPmart-ssh-tunnel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iPmartNetwork%2FiPmart-ssh-tunnel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iPmartNetwork","download_url":"https://codeload.github.com/iPmartNetwork/iPmart-ssh-tunnel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iPmartNetwork%2FiPmart-ssh-tunnel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34641636,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"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":[],"created_at":"2026-06-22T09:01:33.416Z","updated_at":"2026-06-22T09:01:35.449Z","avatar_url":"https://github.com/iPmartNetwork.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cpicture\u003e\n\u003cimg width=\"160\" height=\"160\"  alt=\"XPanel\" src=\"https://github.com/iPmartNetwork/iPmart-SSH/blob/main/images/logo.png\"\u003e\n\u003c/picture\u003e\n  \u003c/p\u003e \n\u003cp align=\"center\"\u003e\n\u003ch1 align=\"center\"/\u003eautossh-tunnel\n\u003c/h1\u003e\n\u003ch6 align=\"center\"\u003eautossh tunnel\n\u003ch6\u003e\n\u003c/p\u003e\n\n\n\n\u003cp align=\"center\"\u003eSetup and keep alive ssh tunnels to remote sites using autossh, screen.\u003c/p\u003e\n\n\nRequirements\n------------\n- bash\n- autossh\n- screen\n- awk (optional)\n- sed (optional)\n\n\nHow it works\n------------\nConfigure the sites you want to tunnel to in `~/.ssh/config`:\n`Host` declarations prefixed with 'autossh-' are \ndetected as *candidates* for tunnel sites, for example:\n\n    Host autossh-HOSTNAME\n    Hostname HOSTNAME\n    User USER\n    RemoteForward 8022 localhost:22\n    IdentityFile ~/.ssh/autossh-id_rsa\n\n`ssh-keygen.sh`:\nthis is a helper script to generate an SSH key with empty passphrase.\nBeware, normally this is considered a *dangerous* thing to do.\nWe sacrifice some security in favor of convenience,\nso that you can easily start ssh tunnels from cron,\nwithout having to reenter a passphrase after every reboot.\n\nTo make this less insecure,\nthe public key will be configured on the remote site with these very restrictive ssh key authorization options:\n\n    command=\"/bin/false\",no-agent-forwarding,no-X11-forwarding,no-pty\n\n`ssh-copy-id.sh`:\nthis is a helper script to install the dedicated SSH key in `~/.ssh/authorized_keys` on each of the detected tunnel sites.\n\n`setup.sh`:\nhelper script to walk you through the setup steps or print the details of the detected setup:\n\n- Print the details of the detected setup, such as:\n\n   - SSH key that will be used with `autossh`\n   - Detected tunnel sites in `~/.ssh/config`\n   - Confirmed tunnel sites (accepting the SSH key)\n\n- Print the steps to complete the configuration.\n\n- Print tips how to test the configuration.\n\n`autossh.sh`:\nwrapper script to run `autossh` for each detected site in an independent `screen` session.\nIt reuses an existing session or else it creates a new one.\n\n`crontab.sh`:\nhelper script to add a line like this in `crontab` to periodically run `autossh.sh`:\n\n    0 * * * * $PWD/autossh.sh\n\n\nHow to install\n--------------\nSimply run `./setup.sh` and follow the steps. This script does not\ndo anything. It only tells you the configuration it detected and\ngives you the steps you need to follow to complete the configuration.\n\n```\napt update -y \n``` \n\n```\napt install autossh -y  \n```\n\n```\ngit clone https://github.com/iPmartNetwork/iPmart-ssh-tunnel.git  \n``` \n\n```\ncd iPmart-ssh-tunnel \n```\n\n```\nsudo chmod -R 777 /root/iPmart-ssh-tunnel \n```\n\n```\n./setup.sh \n```\n\n\n\nHow to uninstall\n----------------\n- Remove any `cron` jobs running `autossh.sh`\n- `./stop.sh` to stop any running `autossh` and `screen` instances\n- Login to each tunnel site and manually remove the script's SSH key\n  from `~/.ssh/authorized_keys`\n\n\n\n\n\n# تلگرام\n\n[@ipmart_network](https://t.me/ipmart_network)\n\n[@iPmart Group](https://t.me/ipmartnetwork_gp)\n\n\n\n\n # حمایت از ما :hearts:\nحمایت های شما برای ما دلگرمی بزرگی است\u003cbr\u003e \n\u003cp align=\"left\"\u003e\n\u003ca href=\"https://plisio.net/donate/kB7QU7f7\" target=\"_blank\"\u003e\u003cimg src=\"https://plisio.net/img/donate/donate_light_icons_mono.png\" alt=\"Donate Crypto on Plisio\" width=\"240\" height=\"80\" /\u003e\u003c/a\u003e\u003cbr\u003e\n\t\n|                    TRX                   |                       BNB                         |                    Litecoin                       |\n| ---------------------------------------- |:-------------------------------------------------:| -------------------------------------------------:|\n| ```TJbTYV1fFo2485sYMyajxGPLFzxmNmPrNA``` |  ```0x4af3de9b303a8d43105e284823d95b4c600961a3``` | ```MPrkzFiNtw4Rg67bbZB6gCxa9LV87orABM``` |\t\n\n\u003c/p\u003e\t\n\n\n\n\n\u003cp align=\"center\"\u003e\n\u003cpicture\u003e\n\u003cimg width=\"160\" height=\"160\"  alt=\"XPanel\" src=\"https://github.com/iPmartNetwork/iPmart-SSH/blob/main/images/logo.png\"\u003e\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipmartnetwork%2Fipmart-ssh-tunnel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fipmartnetwork%2Fipmart-ssh-tunnel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipmartnetwork%2Fipmart-ssh-tunnel/lists"}