SSHSession class

A SSHSession represents a remote execution of a program.

Constructors

SSHSession(SSHChannel _channel)

Properties

done → Future<void>
This Future completes when the channel is closed. More data may still be available on the stdout and stderr streams at this time.
no setter
exitCode → int?
Exit code of the remote process. May be null if the process has not yet exited, the remote process has been terminated due to a signal, or the remote ssh implementation does not report exit codes.
no setter
exitSignal → SSHSessionExitSignal?
Information about the exit signal of a remote process. May be null if the process is still running, the remote process exited normally, or the remote ssh implementation does not report exit signals.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stderr → Stream<Uint8List>
Stderr of the remote process. May be empty if the remote process is started in pseudo terminal or remote ssh implementation does not support stderr.
no setter
stdin → StreamSink<Uint8List>
Stdin of the remote process. Close this to send EOF to the remote process.
no setter
stdout → Stream<Uint8List>
Stdout of the remote process.
no setter

Methods

close() → void
Close the session. After this call, the session is no longer usable.
kill(SSHSignal signal) → void
Deliver signal to the remote process. Some implementations may not support this.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resizeTerminal(int width, int height, [int pixelWidth = 0, int pixelHeight = 0]) → void
Inform remote process of the current window size.
toString() → String
A string representation of this object.
inherited
write(Uint8List data) → void
Writes data to the stdin of the remote process. This is a convenience method that calls stdin.add.

Operators

operator ==(Object other) → bool
The equality operator.
inherited