{"id":21097300,"url":"https://github.com/bashkarev/ssh","last_synced_at":"2026-04-28T14:34:06.280Z","repository":{"id":139059134,"uuid":"108322798","full_name":"bashkarev/ssh","owner":"bashkarev","description":null,"archived":false,"fork":false,"pushed_at":"2017-10-30T21:19:51.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-01T14:37:12.346Z","etag":null,"topics":["ssh","ssh-client"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/bashkarev.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":"2017-10-25T20:31:59.000Z","updated_at":"2017-10-30T21:21:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"e3af28cd-397b-4e1d-9eca-56c661a149fb","html_url":"https://github.com/bashkarev/ssh","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bashkarev/ssh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashkarev%2Fssh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashkarev%2Fssh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashkarev%2Fssh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashkarev%2Fssh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bashkarev","download_url":"https://codeload.github.com/bashkarev/ssh/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashkarev%2Fssh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32385179,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T11:25:28.583Z","status":"ssl_error","status_checked_at":"2026-04-28T11:25:05.435Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ssh","ssh-client"],"created_at":"2024-11-19T22:47:12.890Z","updated_at":"2026-04-28T14:34:06.257Z","avatar_url":"https://github.com/bashkarev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Native ssh client \n=================\nstatus: in progress\n\n[![Build Status](https://travis-ci.org/bashkarev/ssh.svg?branch=master)](https://travis-ci.org/bashkarev/ssh)\n\n\nInstallation\n------------\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nEither run\n\n```\ncomposer require bashkarev/ssh\n```\n \n## Usage\n\n```php\n$client = new \\Bashkarev\\Ssh\\Client('127.0.0.1');\n$client\n    -\u003esetPort(22)\n    -\u003esetUser('ssh_user')\n    -\u003esetIdentityFile('path/to/private_key')\n    -\u003esetForwardAgent(true);\n\n/**\n * @var \\Bashkarev\\Ssh\\Command $command\n */\n$command = $client-\u003eexec('php -v', 360, 60);\nforeach ($command-\u003egetIterator() as $type =\u003e $data) {\n    if ($command::OUT === $type) {\n        echo \"\\nRead from stdout: \" . $data;\n    } else { // $command::ERR === $type\n        echo \"\\nRead from stderr: \" . $data;\n    }\n}\n\n$command-\u003egetExitCode();\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbashkarev%2Fssh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbashkarev%2Fssh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbashkarev%2Fssh/lists"}