| java.lang.Object | |||
| ↳ | net.schmizz.sshj.connection.channel.AbstractChannel | ||
| ↳ | net.schmizz.sshj.connection.channel.direct.AbstractDirectChannel | ||
| ↳ | net.schmizz.sshj.connection.channel.direct.SessionChannel | ||
Session implementation.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
net.schmizz.sshj.connection.channel.AbstractChannel
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| canDoFlowControl | |||||||||||
| err | |||||||||||
| exitErrMsg | |||||||||||
| exitSignal | |||||||||||
| exitStatus | |||||||||||
| usedUp | |||||||||||
| wasCoreDumped | |||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
net.schmizz.sshj.connection.channel.AbstractChannel
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Allocates a default PTY.
| |||||||||||
Allocate a psuedo-terminal for this session.
| |||||||||||
Whether the client can do local flow control using
control-S and control-Q. | |||||||||||
Sends a window dimension change message.
| |||||||||||
Execute a remote command.
| |||||||||||
Returns the command's
stderr stream. | |||||||||||
If the command exit violently
with a signal, an error message would have been
received and can be retrieved via this method. | |||||||||||
Returns the
signal if the command exit violently, or null if this information was not
received. | |||||||||||
Returns the exit status of the command if it was received, or
null if this information was not
received. | |||||||||||
If the command exit violently
with a signal, information about whether a core dump
took place would have been received and can be retrieved via this method. | |||||||||||
Notifies this object of an
error. | |||||||||||
Request X11 forwarding.
| |||||||||||
Set an enviornment variable.
| |||||||||||
Send a signal to the remote command.
| |||||||||||
Request a shell.
| |||||||||||
Request a subsystem.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Called when all I/O streams should be closed.
| |||||||||||
Called when EOF has been received.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
net.schmizz.sshj.connection.channel.direct.AbstractDirectChannel
| |||||||||||
From class
net.schmizz.sshj.connection.channel.AbstractChannel
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.io.Closeable
| |||||||||||
From interface
net.schmizz.sshj.common.ErrorNotifiable
| |||||||||||
From interface
net.schmizz.sshj.common.SSHPacketHandler
| |||||||||||
From interface
net.schmizz.sshj.connection.channel.Channel
| |||||||||||
From interface
net.schmizz.sshj.connection.channel.Channel.Direct
| |||||||||||
From interface
net.schmizz.sshj.connection.channel.direct.Session
| |||||||||||
From interface
net.schmizz.sshj.connection.channel.direct.Session.Command
| |||||||||||
From interface
net.schmizz.sshj.connection.channel.direct.Session.Shell
| |||||||||||
From interface
net.schmizz.sshj.connection.channel.direct.Session.Subsystem
| |||||||||||
Allocates a default PTY. The default PTY is "vt100" with the echo modes disabled.
Allocate a psuedo-terminal for this session.
0 dimension parameters will be ignored by the server.| term | TERM environment variable value (e.g., vt100) |
|---|---|
| cols | Terminal width, cols (e.g., 80) |
| rows | Terminal height, rows (e.g., 24) |
| width | Terminal width, pixels (e.g., 640) |
| height | Terminal height, pixels (e.g., 480) |
| modes |
Whether the client can do local flow control using control-S and control-Q.
null if no such information was
received
Sends a window dimension change message.
| cols | Terminal width, columns |
|---|---|
| rows | Terminal height, rows |
| width | Terminal width, pixels |
| height | Terminal height, pixels |
| TransportException |
|---|
Execute a remote command.
| command |
|---|
Session.Command instance which should now be usedReturns the command's stderr stream.
If the command exit violently with a signal, an error message would have been
received and can be retrieved via this method. Otherwise, this method will return null.
Returns the signal if the command exit violently, or null if this information was not
received.
Returns the exit status of the command if it was received, or null if this information was not
received.
If the command exit violently with a signal, information about whether a core dump
took place would have been received and can be retrieved via this method. Otherwise, this method will return
null.
Request X11 forwarding.
| authProto | X11 authentication protocol name |
|---|---|
| authCookie | X11 authentication cookie |
| screen | X11 screen number |
Set an enviornment variable.
| name | Name of the variable |
|---|---|
| value | Value to set |
Request a shell.
Session.Shell instance which should now be usedRequest a subsystem.
| name | Subsystem name |
|---|
Session.Subsystem instance which should now be usedCalled when all I/O streams should be closed. Subclasses can override but must call super.
Called when EOF has been received. Subclasses can override but must call super.