Package ghidra.pty.ssh
Class GhidraSshPtyFactory
java.lang.Object
ghidra.pty.ssh.GhidraSshPtyFactory
- All Implemented Interfaces:
PtyFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final intstatic final StringFields inherited from interface ghidra.pty.PtyFactory
DEFAULT_COLS, DEFAULT_ROWS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.jcraft.jsch.SessionGet a human-readable description of the factoryintgetPort()openpty(short cols, short rows) Open a new pseudo-terminalvoidsetConfigFile(String configFile) voidsetHostname(String hostname) voidsetPort(int port) voidsetUsername(String username) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ghidra.pty.PtyFactory
openpty, openpty
-
Field Details
-
DEFAULT_HOSTNAME
- See Also:
-
DEFAULT_PORT
public static final int DEFAULT_PORT- See Also:
-
DEFAULT_USERNAME
- See Also:
-
DEFAULT_CONFIG_FILE
- See Also:
-
-
Constructor Details
-
GhidraSshPtyFactory
public GhidraSshPtyFactory()
-
-
Method Details
-
getHostname
-
setHostname
-
getPort
public int getPort() -
setPort
public void setPort(int port) -
getUsername
-
setUsername
-
getConfigFile
-
setConfigFile
-
connectAndAuthenticate
- Throws:
IOException
-
openpty
Description copied from interface:PtyFactoryOpen a new pseudo-terminal- Specified by:
openptyin interfacePtyFactory- Parameters:
cols- the initial width in characters, or 0 to let the system decide both dimensionsrows- 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
Description copied from interface:PtyFactoryGet a human-readable description of the factory- Specified by:
getDescriptionin interfacePtyFactory- Returns:
- the description
-