Class JCshConnection

java.lang.Object
net.thevpc.nuts.ext.ssh.SshConnectionBase
net.thevpc.nuts.ext.ssh.jcsh.JCshConnection
All Implemented Interfaces:
AutoCloseable, SshConnection

public class JCshConnection extends SshConnectionBase
  • Field Details

  • Constructor Details

  • Method Details

    • unwrap

      public static JCshConnection unwrap(SshConnection any)
    • execStringCommand

      public int execStringCommand(String command, IOBindings io)
    • readRemoteFileSftp

      protected byte[] readRemoteFileSftp(String from)
    • readRemoteFileScp

      protected byte[] readRemoteFileScp(String from)
    • copyRemoteToLocal

      public void copyRemoteToLocal(String from, String to, boolean mkdir)
    • copyRemoteToLocalSftp

      protected void copyRemoteToLocalSftp(String from, String to, boolean mkdir)
    • copyRemoteToLocalScp

      protected void copyRemoteToLocalScp(String from, String to, boolean mkdir)
    • getInputStream

      public InputStream getInputStream(String from)
    • getOutputStream

      public OutputStream getOutputStream(String from)
    • copyLocalToRemote

      public void copyLocalToRemote(String from, String to, boolean mkdirs)
    • isAlive

      public boolean isAlive()
    • isClosed

      public boolean isClosed()
    • close

      public void close()
    • openExecChannel

      public com.jcraft.jsch.Channel openExecChannel(String command)
    • prepareStream

      public InputStream prepareStream(File file) throws FileNotFoundException
      Throws:
      FileNotFoundException