{"id":13504311,"url":"https://github.com/jdcasey/sshwrap","last_synced_at":"2026-04-24T00:39:17.492Z","repository":{"id":1004353,"uuid":"819601","full_name":"jdcasey/sshwrap","owner":"jdcasey","description":"Convenience API for Jsch","archived":false,"fork":false,"pushed_at":"2012-03-31T03:55:10.000Z","size":144,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T12:58:11.714Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","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/jdcasey.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-08-05T16:58:20.000Z","updated_at":"2016-09-21T20:09:58.000Z","dependencies_parsed_at":"2022-08-16T11:45:27.969Z","dependency_job_id":null,"html_url":"https://github.com/jdcasey/sshwrap","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdcasey%2Fsshwrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdcasey%2Fsshwrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdcasey%2Fsshwrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdcasey%2Fsshwrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdcasey","download_url":"https://codeload.github.com/jdcasey/sshwrap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243248110,"owners_count":20260748,"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":[],"created_at":"2024-08-01T00:00:28.801Z","updated_at":"2025-12-28T04:18:36.449Z","avatar_url":"https://github.com/jdcasey.png","language":"Java","funding_links":[],"categories":["JSch based"],"sub_categories":[],"readme":"# SSHWrap - Convenience API for Jsch #\n\nSSHWrap is designed to provide a minimal set of classes that allow you streamlined access to the features of the Jsch Java SSH client library.\n\n## Usage ##\n\nImagine that you need to create and initialize a bare remote Git repository for a project you're about to push. The following method will do the trick:\n\n    private boolean createRemoteGitRepo( final String dir )\n        throws IOException, SSHWrapException\n    {\n        SSHConnection ssh = new SSHConnection( USER, HOST, PORT ).connect();\n    \n        final Set\u003cString\u003e cmds = new HashSet\u003cString\u003e();\n        cmds.add( \"mkdir -p \" + dir );\n        cmds.add( \"git --git-dir=\" + dir + \" --bare init\" );\n\n        final ByteArrayOutputStream cmdOutput = new ByteArrayOutputStream();\n\n        for ( final String cmd : cmds )\n        {\n            cmdOutput.reset();\n            final int result = ssh.execute( cmd, cmdOutput );\n\n            if ( LOGGER.isDebugEnabled() )\n            {\n                LOGGER.debug( new String( cmdOutput.toByteArray() ) );\n            }\n\n            if ( result != 0 )\n            {\n                return false;\n            }\n        }\n\n        return true;\n    }\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdcasey%2Fsshwrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdcasey%2Fsshwrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdcasey%2Fsshwrap/lists"}