{"id":21900747,"url":"https://github.com/taylornetwork/server-connector","last_synced_at":"2026-04-09T16:38:57.296Z","repository":{"id":45128625,"uuid":"132831001","full_name":"taylornetwork/server-connector","owner":"taylornetwork","description":"Define SSH/SFTP connections and easily connect to them","archived":false,"fork":false,"pushed_at":"2022-11-21T15:25:01.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-27T06:32:09.260Z","etag":null,"topics":["php","server","ssh"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/taylornetwork.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-10T01:18:23.000Z","updated_at":"2022-02-13T16:49:32.000Z","dependencies_parsed_at":"2023-01-22T03:16:58.243Z","dependency_job_id":null,"html_url":"https://github.com/taylornetwork/server-connector","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taylornetwork%2Fserver-connector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taylornetwork%2Fserver-connector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taylornetwork%2Fserver-connector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taylornetwork%2Fserver-connector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taylornetwork","download_url":"https://codeload.github.com/taylornetwork/server-connector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244913331,"owners_count":20530817,"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":["php","server","ssh"],"created_at":"2024-11-28T15:09:55.082Z","updated_at":"2026-04-09T16:38:57.245Z","avatar_url":"https://github.com/taylornetwork.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ServerConnector\n\nDo you need to ssh/sftp into servers and get tired of always typing `ssh user@some-connection.org`? Or worse having to type an IP address?\n\nThis console application will allow you to define connections you make frequently to connect as easy as `connect e`\n\n## Install\n\nUsing Composer\n\n```bash\n$ composer global require taylornetwork/server-connector\n```\n\n## Config\n\nConfig files will be published to `~/ServerConnector/config/`\n\nNote: if config files are not automatically published run the `config:publish` command.\n\n```bash\n$ server-connector config:publish\n```\n\n#### defaults.php\n\nDefines the default connection type if omitted.\n\n```php\n// defaults.php\n\nreturn [\n\t'type' =\u003e 'ssh',\n];\n```\n\n#### connections.php\n\nThis is where you define all your server connections.\n\nBy default:\n\n```php\n// connections.php\n\nreturn [\n\n\t// Name of the connection as the key\n\t'example' =\u003e [\n\t\n\t\t// Add any short aliases to access this as\n       'aliases' =\u003e [ 'ex', 'e' ],\n       \n       // Add credentials here, or an empty array\n       'credentials' =\u003e [\n            'username' =\u003e 'user1',\n            \n            // Password is not recommended, ideally omit this and use ssh keys\n            'password' =\u003e 'password1',\n        ],\n\t\n\t// Omit to use default or you can set the path to a private key\n        'keyFile' =\u003e '~/.ssh/id_rsa',\n        \n        // URL or IP address to connect to\n        'url' =\u003e 'connect.example.com',\n    ],\n];\n```\n\nAdd your connections in the array that will be returned.\n\n## Usage\n\nOnce you have defined some connections you can run \n\n```bash\n$ server-connector connect ConnectionNameOrAlias\n```\n\nWhich will connect to the connection with the default connection type\n\nAlternatively \n\n```bash\n$ server-connector connect sftp ConnectionNameOrAlias\n```\n\nTo connect via SFTP if it isn't the default.\n\n### Register BASH Function\n\nTo add a function to your `~/.profile` to call `server-connector` you can use \n\n```bash\n$ server-connector register\n```\n\nBy default it will register a function `connect()` in your `~/.profile` you can specify the function name by\n\n```bash\n$ server-connector register FunctionName\n```\n\nAfter running this command you will need to source your `~/.profile` or restart your terminal application.\n\n---\n\nWith the BASH function you can call this application by\n\n```bash\nconnect ConnectionNameOrAlias\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaylornetwork%2Fserver-connector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaylornetwork%2Fserver-connector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaylornetwork%2Fserver-connector/lists"}