Class Ssh

    • Method Detail

      • escape

        public static String escape​(String path)
        Escapes a path to a form suitable for use on a command-line.
        path - the path.
        the escaped path.
      • getConnection

        public com.trilead.ssh2.Connection getConnection()
        Get the connection and authenticate before using any method
      • executeRemoteCommand

        public int executeRemoteCommand​(String cmd,
                                        OutputStream os)
      • executeRemoteCommand

        public int executeRemoteCommand​(String cmd)
        Execute remote command, log output using System.out *