Skip to content

bytes-chaser/eazy-ssh-jsch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.