Function called when additional host keys are received. This is an OpenSSH
extension. May not be called if the server does not support the extension.
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.
Set this field to enable setting new passwords when the server requests
changing password when using the 'password' authentication method. Return
null to skip to the next available authentication method.
Set this field to enable the 'keyboard-interactive' authentication method.
This may be called multiple times to request additional prompts. Return
null to skip to the next available authentication method.
Function called when the first host key is received. Return true to accept
the host key, false to reject it and close the connection. If this is
null, the host key is accepted automatically.
Forward connections to a localHost:localPort to remoteHost:remotePortlocalHost and localPort are only required by the protocol and do not
need to be specified in most cases.
Request connections to a port on the other side be forwarded to the local
side.
Set host to null to listen on all interfaces, "0.0.0.0" to
listen on all IPv4 interfaces, "::" to listen on all IPv6 interfaces,
and "localhost" to listen on the loopback interface on all protocols.
Set port to null to listen on a random port.
Create a new SSHHttpClient that can be used to make HTTP requests
that are tunneled over the SSH connection. The returned SSHHttpClient
is a very basic implementation, only intended for making simple requests.
Execute command on the remote side non-interactively. Returns a
Future<String?> that completes with the output of the command.
This is a convenience method over execute. If stdout is false,
the standard output of the command will be ignored. If stderr is
false, the standard error of the command will be ignored.