Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/joangq/jssh
- Owner: joangq
- License: gpl-3.0
- Created: 2022-03-10T10:36:39.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-28T20:19:39.000Z (almost 2 years ago)
- Last Synced: 2025-01-01T01:45:21.273Z (about 1 month ago)
- Topics: homebrew, java, ssh, ssh-tunnel, wip, wrapper
- Language: Java
- Homepage:
- Size: 88.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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!");
}
}
```