Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 322 Bytes

File metadata and controls

19 lines (11 loc) · 322 Bytes

Java-SSH

A SSH Library that encapsulate jsch for simple commands usage.

Sample

SSHUserInfo userInfo = new SSHUserInfo("user","password");
SSHService ssh = new SSHService(userInfo, "192.168.0.100");


ssh.connect();

ssh.exec("cd ~/logs/");
String tailLog = ssh.exec("tail service.log");

ssh.close();