Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joangq/jssh

A homemade wrapper to the JSch library for connecting over SSH using Java.
https://github.com/joangq/jssh

homebrew java ssh ssh-tunnel wip wrapper

Last synced: 27 days ago
JSON representation

A homemade wrapper to the JSch library for connecting over SSH using Java.

Awesome Lists containing this project

README

        


JSSH


A homemade wrapper to the JSch library for connecting over SSH using Java

```java
import java.io.File;
import me.joan.jssh.Session;
import me.joan.util.PropertiesManager;
import me.joan.util.Utils;
import org.apache.logging.log4j.*;

public class Main {
public static Logger LOGGER = LogManager.getLogger(Main.class);

public static void main(String[] args) {
LOGGER.info("JSSH Client starting...");
PropertiesManager propertiesManager = new PropertiesManager(LOGGER);
propertiesManager.load(new File("./session.properties"));

Session JSSH = new Session(propertiesManager.getKeys(), LOGGER);
JSSH.connect();
JSSH.logExecuteCommand("echo Hello from the other side!");
}
}
```