Class GhidraSshPtyFactory

java.lang.Object
ghidra.pty.ssh.GhidraSshPtyFactory
All Implemented Interfaces:
PtyFactory

public class GhidraSshPtyFactory extends Object implements PtyFactory
  • Field Details

  • Constructor Details

    • GhidraSshPtyFactory

      public GhidraSshPtyFactory()
  • Method Details

    • getHostname

      public String getHostname()
    • setHostname

      public void setHostname(String hostname)
    • getPort

      public int getPort()
    • setPort

      public void setPort(int port)
    • getUsername

      public String getUsername()
    • setUsername

      public void setUsername(String username)
    • getConfigFile

      public String getConfigFile()
    • setConfigFile

      public void setConfigFile(String configFile)
    • connectAndAuthenticate

      protected com.jcraft.jsch.Session connectAndAuthenticate() throws IOException
      Throws:
      IOException
    • openpty

      public SshPty openpty(short cols, short rows) throws IOException
      Description copied from interface: PtyFactory
      Open a new pseudo-terminal
      Specified by:
      openpty in interface PtyFactory
      Parameters:
      cols - the initial width in characters, or 0 to let the system decide both dimensions
      rows - the initial height in characters, or 0 to let the system decide both dimensions
      Returns:
      new new Pty
      Throws:
      IOException - for an I/O error, including cancellation
    • getDescription

      public String getDescription()
      Description copied from interface: PtyFactory
      Get a human-readable description of the factory
      Specified by:
      getDescription in interface PtyFactory
      Returns:
      the description