bytes-chaser / eazy-ssh-jsch

Eazy SSH implementation over JSch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eazy-ssh-jsch

Eazy SSH implementation over JSch

Adding dependency

Maven

<!-- https://mvnrepository.com/artifact/io.github.bytes-chaser/eazy-ssh-jsch -->
<dependency>
    <groupId>io.github.bytes-chaser</groupId>
    <artifactId>eazy-ssh-jsch</artifactId>
    <version>1.0.0</version>
</dependency>

Gradle

// https://mvnrepository.com/artifact/io.github.bytes-chaser/eazy-ssh-jsch
implementation 'io.github.bytes-chaser:eazy-ssh-jsch:1.0.0'

Usage

Use the core project "usage" section for full usage reference. The only step that may vary is setting the context SSH implementation. These library intended to Use JSch SSH implementation

        // New context with defaults
        ESSHContext context = new ESSHContextImpl();
        context.setHost(host);
        context.setUser(user);
        context.setPass(pass);
        
        // registers client and parser in the context
        ESSHContext context = context
            .register(SimpleClient.class)
            .parser(MemoryInfo.class, new MemoryInfoParser())
            .create(Jsch::new)

Credits

Special thanks to JCraft, that started JSch project and Matthias Wiedemann for creating fork for JSch and continuous support.

About

Eazy SSH implementation over JSch

License:Apache License 2.0


Languages

Language:Java 100.0%