Skip to content

kayeez/ssh4j

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SSH4j

Command executor for Java .

It is a SSH java client and a runtime client .

It support two type of connector.

  • Runtime
    Based on Java ProcessBuilder and Process classes
  • SSH
    Based on JSCH project. It will cache the SSH connection

Maven import

In progress

Basic Conception

Command

All command is subclass of AbstractCommand

  • Console command
  • Shell command
  • Upload content command
  • Upload file command
  • Upload stream command
  • Download file command
Connector
  • Runtime connector

    Annotated by ConnectorLoginMapping(RuntimeLoginInformation.class)

  • SSH connector

    Annotated by ConnectorLoginMapping(SSHLoginInformation.class)

LoginInformation
  • Runtime login information
  • SSH login information
Handler
  • Running handler

    CommandExecutionFinishedHandler

  • Finished handler

    CommandExecutionRunningHandler

Usage

  • CommandExecutor.execute

    It will create a connector by LoginInformation type.

    When RuntimeLoginInformation is gaven, It will create a RuntimeConnector.

    When SSHLoginInformation is gaven , It will create a SSHConnector.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages