Interface SshClient

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
JSchSshClient

public interface SshClient extends Closeable
Simple SSH client.
  • Method Details

    • command

      default String command(String command)
    • execute

      CliProcess execute(String command)
      Executes command on a remote machine.
      Parameters:
      command - Command to be executed on remote machine.
      Returns:
      CLIProcess
    • execute

      CliProcess execute(List<String> command)
    • upload

      void upload(Path file, String remotePath)
      Uploads file to a remote machine. It works like SCP.
      Parameters:
      file - Local path to file which is to be uploaded
      remotePath - Destination path for file on remote machine.