Package ghidra.pty.ssh
Class GhidraSshPtyFactory
java.lang.Object
ghidra.pty.ssh.GhidraSshPtyFactory
- All Implemented Interfaces:
PtyFactory
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final int
static final String
Fields inherited from interface ghidra.pty.PtyFactory
DEFAULT_COLS, DEFAULT_ROWS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected com.jcraft.jsch.Session
Get a human-readable description of the factoryint
getPort()
openpty
(short cols, short rows) Open a new pseudo-terminalvoid
setConfigFile
(String configFile) void
setHostname
(String hostname) void
setPort
(int port) void
setUsername
(String username) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:PtyFactory
Open a new pseudo-terminal- Specified by:
openpty
in 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:PtyFactory
Get a human-readable description of the factory- Specified by:
getDescription
in interfacePtyFactory
- Returns:
- the description
-