{"id":20292932,"url":"https://github.com/gemini-testing/ssh-tunneler","last_synced_at":"2025-07-25T05:39:47.623Z","repository":{"id":57368899,"uuid":"75823532","full_name":"gemini-testing/ssh-tunneler","owner":"gemini-testing","description":"Plugin for gemini and hermione to set up ssh tunnel while running tests","archived":false,"fork":false,"pushed_at":"2017-08-11T05:30:43.000Z","size":10,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-07-12T06:45:47.807Z","etag":null,"topics":["gemini-plugin","hermione-plugin"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/gemini-testing.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":"2016-12-07T10:05:38.000Z","updated_at":"2019-07-25T12:03:12.000Z","dependencies_parsed_at":"2022-08-23T20:10:23.127Z","dependency_job_id":null,"html_url":"https://github.com/gemini-testing/ssh-tunneler","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gemini-testing/ssh-tunneler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemini-testing%2Fssh-tunneler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemini-testing%2Fssh-tunneler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemini-testing%2Fssh-tunneler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemini-testing%2Fssh-tunneler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gemini-testing","download_url":"https://codeload.github.com/gemini-testing/ssh-tunneler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemini-testing%2Fssh-tunneler/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266962351,"owners_count":24012997,"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-07-25T02:00:09.625Z","response_time":70,"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":["gemini-plugin","hermione-plugin"],"created_at":"2024-11-14T15:20:02.582Z","updated_at":"2025-07-25T05:39:47.556Z","avatar_url":"https://github.com/gemini-testing.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ssh-tunneler [![Build Status](https://travis-ci.org/gemini-testing/ssh-tunneler.svg?branch=master)](https://travis-ci.org/gemini-testing/ssh-tunneler)\n\nPlugin for [gemini](https://github.com/gemini-testing/gemini) and [hermione](https://github.com/gemini-testing/hermione) to set up ssh tunnel while running tests.\n\n## Install\n\n```bash\n$ npm install ssh-tunneler\n```\n\n## Configuration\n\n* **host** (mandatory) `String` – address of a remote host to which ssh tunnel will be established\n* **ports** (mandatory) `Object` - ports range on a remote host; port will be picked randomly from this range\n  * **min** `Number` – min port number\n  * **max** `Number` - max port number\n* **localport** (mandatory) `Number` - available port on a local machine\n* **user** (optional) `String` - user to connect to a remote host\n* **sshPort** (optional) `Number` - port which should be used to create ssh tunnel, default is `22`\n* **retries** (optional) `Number` - the number of attempts to establish a tunnel, default is `5`\n* **protocol** (optional) `String` - protocol which will be used in a resulting base url, default is `http`\n* **enabled** (optional) `Boolean` - switch on/off the plugin; the plugin is switched on by default.\n* **urlDecorator** (optional) `Function` - provides the ability to decorate a resulting base url; function accepts two arguments - 1) a current value of a base url, 2) an instance of a created ssh tunnel\n\n## Usage\n\n### gemini\n\nAdd the plugin to your configuration file:\n\n```js\nmodule.exports = {\n    system: {\n        plugins: {\n            'ssh-tunneler/gemini': {\n                // configuration\n            }\n        }\n    }\n};\n```\n\n### hermione\n\nAdd the plugin to your configuration file:\n\n```js\nmodule.exports = {\n    plugins: {\n        'ssh-tunneler/hermione': {\n            // configuration\n        }\n    }\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgemini-testing%2Fssh-tunneler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgemini-testing%2Fssh-tunneler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgemini-testing%2Fssh-tunneler/lists"}