SSHTransport class
Constructors
- SSHTransport(SSHSocket socket, {bool isServer = false, String version = 'DartSSH_2.0', SSHPrintHandler? printDebug, SSHPrintHandler? printTrace, SSHAlgorithms algorithms = const SSHAlgorithms(), SSHHostkeyVerifyHandler? onVerifyHostKey, SSHTransportReadyHandler? onReady, SSHPacketHandler? onPacket})
Properties
- algorithms → SSHAlgorithms
-
final
-
done
→ Future<
void> -
A Future that completes when the transport is closed, or when an error
occurs. After this Future completes, isClosed will be true and no
more data can be sent or received.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isClient → bool
-
Whether the transport acts as a client. This is equal to
!isServer
.no setter - isClosed → bool
-
true
if the connection is closed normally or due to an error.no setter - isServer → bool
-
Whether the transport acts as a server.
final
- onPacket → SSHPacketHandler?
-
Function called when a packet is received.
final
- onReady → SSHTransportReadyHandler?
-
Function called when the transport is ready to send data.
final
- onVerifyHostKey → SSHHostkeyVerifyHandler?
-
Function called when the hostkey has been received. Returns true if the
hostkey is valid, false to reject key and disconnect.
final
- printDebug → SSHPrintHandler?
-
Function invoked with debug logging.
final
- printTrace → SSHPrintHandler?
-
Function invoked with trace logging.
final
- remoteVersion → String?
-
Identification string sent by the other side. For example, "SSH-2.0-OpenSSH_7.4p1".
May be
null
if the handshake has not yet completed.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- socket → SSHSocket
-
The socket to read and write data to.
final
- version → String
-
Version of the SSH software. By default "DartSSH_2.0"
final
Methods
-
close(
) → void -
closeWithError(
SSHError error, [StackTrace? stackTrace]) → void -
composeChallenge(
{required String username, required String service, required String publicKeyAlgorithm, required Uint8List publicKey}) → Uint8List - Composes the data blob to be signed by the client with its public key.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendPacket(
Uint8List data) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited