Coder Social home page Coder Social logo

jsch-agent-proxy's Introduction

jsch-agent-proxy

a proxy to ssh-agent and Pageant in Java.

Description

jsch-agent-proxy is a proxy program to OpenSSH's ssh-agent and Pageant included Putty. It will be easily integrated into JSch, and users will be allowed to use those programs in authentications. This software has been developed for JSch, but it will be easily applicable to other ssh2 implementations in Java. This software is licensed under BSD style license.

Build from Source

$ git clone git://github.com/ymnk/jsch-agent-proxy.git
$ cd jsch-agent-proxy
$ mvn package
$ mvn install

Examples

  • UsingPageant.java
    This sample demonstrates how to get accesses to Pageant.

      $ cd examples
      $ cd compile
      $ mvn exec:java \
        -Dexec.mainClass="com.jcraft.jsch.agentproxy.examples.UsingPageant"
    
  • UsingSSHAgent.java
    This sample demonstrates how to get accesses to ssh-agent.

      $ cd examples
      $ mvn compile
      $ mvn exec:java \
        -Dexec.mainClass="com.jcraft.jsch.agentproxy.examples.UsingSSHAgent"
    
  • JSchWithAgentProxy.java
    This sample demonstrates how to integrate jsch-agent-proxy into JSch.

      $ cd examples
      $ mvn compile
      $ mvn exec:java \
        -Dexec.mainClass="com.jcraft.jsch.agentproxy.examples.JSchWithAgentProxy" \
        -Dexec.args="[email protected]"
    
  • SshjWithAgentProxy.java
    This sample demonstrates how to integrate jsch-agent-proxy into sshj.

      $ cd examples
      $ mvn compile
      $ mvn exec:java \
        -Dexec.mainClass="com.jcraft.jsch.agentproxy.examples.SshjWithAgentProxy" \
        -Dexec.args="[email protected]"
    
  • TrileadWithAgentProxy.java
    This sample demonstrates how to integrate jsch-agent-proxy into Trilead SSH2 (SVNKit fork).

      $ cd examples
      $ mvn compile
      $ mvn exec:java \
        -Dexec.mainClass="com.jcraft.jsch.agentproxy.examples.TrileadWithAgentProxy" \
        -Dexec.args="[email protected] date"
    

Dependencies

To work as a proxy to ssh-agent and Pageant, the current implementation depends on the following software,

As for connections to ssh-agent, unix domain sockets must be handled, and the current implementation has been using JNA or junixsocket for that purpose. Refer to following classes,

NCUSocketFactory expects the external command nc(OpenBSD's netcat), but you don't have to install other third party software.

As for connections to Pageant, win32 APIs must be handled, and JNA has been used in the current implementation for that purpose. Refer to the following class,

If you want to be free from JNA and junixsocket, implement following interfaces without them,

jsch-agent-proxy's People

Contributors

ymnk avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.