{"id":15067306,"url":"https://github.com/josbroers/ssh-connect","last_synced_at":"2025-10-05T04:31:41.717Z","repository":{"id":62062138,"uuid":"556856948","full_name":"josbroers/ssh-connect","owner":"josbroers","description":"Easily connect to and manage your SSH connections.","archived":true,"fork":false,"pushed_at":"2023-01-05T00:09:49.000Z","size":629,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-02T16:16:47.313Z","etag":null,"topics":["linux","scp","server-tools","ssh"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@josbroers/ssh-connect","language":"TypeScript","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/josbroers.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":"2022-10-24T16:40:16.000Z","updated_at":"2024-02-25T22:26:05.000Z","dependencies_parsed_at":"2023-02-03T01:15:56.050Z","dependency_job_id":null,"html_url":"https://github.com/josbroers/ssh-connect","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josbroers%2Fssh-connect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josbroers%2Fssh-connect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josbroers%2Fssh-connect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josbroers%2Fssh-connect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/josbroers","download_url":"https://codeload.github.com/josbroers/ssh-connect/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235364870,"owners_count":18978255,"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":["linux","scp","server-tools","ssh"],"created_at":"2024-09-25T01:19:26.509Z","updated_at":"2025-10-05T04:31:41.379Z","avatar_url":"https://github.com/josbroers.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSH Connect\n\n![npm](https://img.shields.io/npm/v/@josbroers/ssh-connect)\n\nA package to easily connect and manage your SSH connections.\n\nNote: the arguments are optional\n\n## Table of contents\n\n- [1. Node.js](#1-nodejs)\n- [2. Configure](#2-configure)\n- [3. Scripts](#3-scripts)\n\t- [3.2 Aliases](#32-aliases)\n\n## 1. Node.js\n\nFirst install the Node.js higher or equal to 16. Use the JavaScript Tool Manager [Volta](https://volta.sh/) or\nthe [Node Version Manager](https://github.com/nvm-sh/nvm).\n\n## 2. Configure\n\nBefore you can use this package as an executable you need to create a JSON file. Run the following command to create\nthis file:\n\n```bash\nssh-connect configure \u003cpath_for_file\u003e\n```\n\n## 3. Scripts\n\n#### To create a connections file, use:\n\n```bash\nssh-connect configure \u003cpath_for_file\u003e\n```\n\n#### To list all the defined connections, use:\n\n```bash\nssh-connect list \u003cpath_for_file\u003e\n```\n\n#### To connect to a listed connection, use:\n\n```bash\nssh-connect connect \u003cpath_to_file\u003e \u003cconnection_name\u003e\n```\n\n#### To add a new connection, use:\n\n```bash\nssh-connect add \u003cpath_to_file\u003e \u003cconnection_name\u003e\n```\n\n#### To remove a listed connection, use:\n\n```bash\nssh-connect remove \u003cpath_to_file\u003e \u003cconnection_name\u003e\n```\n\n#### To edit a listed connection, use:\n\n```bash\nssh-connect edit \u003cpath_to_file\u003e \u003cconnection_name\u003e\n```\n\n#### To get the IP-address of a listed connection, use:\n\n```bash\nssh-connect get \u003cpath_to_file\u003e \u003cconnection_name\u003e\n```\n\n#### To list all the available aliases, use:\n\n```bash\nssh-connect aliases \u003cpath_for_file\u003e\n```\n\n### 3.2 Aliases\n\nYou can use aliases to predefine the type, connection:\n\n```bash\nalias ssh-con=\"ssh-connect connect $HOME/connections.json\"\nalias ssh-add=\"ssh-connect add $HOME/connections.json\"\nalias ssh-rm=\"ssh-connect remove $HOME/connections.json\"\nalias ssh-ls=\"ssh-connect list $HOME/connections.json\"\nalias ssh-edit=\"ssh-connect edit $HOME/connections.json\"\nalias ssh-get=\"ssh-connect get $HOME/connections.json\"\nalias ssh-alias=\"ssh-connect aliases $HOME/connections.json\"\n```\n\nYou can take it even further by making aliases for specific connection names:\n\n```bash\nalias google=\"ssh-connect connect $HOME/connections.json google\"\nalias ssh-google=\"ssh-connect connect $HOME/connections.json google\"\n\nalias cloudflare=\"ssh-connect connect $HOME/connections.json cloudflare\"\nalias ssh-cloudflare=\"ssh-connect connect $HOME/connections.json cloudflare\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosbroers%2Fssh-connect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosbroers%2Fssh-connect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosbroers%2Fssh-connect/lists"}