Builder

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Whether to automatically disconnect the SSH connection when the last channel is closed.

Link copied to clipboard

Client version string sent during SSH handshake.

Link copied to clipboard

Enable zlib compression. When true, the client offers zlib@openssh.com,zlib,none; when false, only none.

Link copied to clipboard
Link copied to clipboard

Environment variables sent before each session starts, including SFTP. Servers may ignore variables not allowed by their policy (OpenSSH AcceptEnv). Names and values use UTF-8 and must not contain NUL. Only supplied variables are sent.

Link copied to clipboard

Hostname for TCP connections. Used with default KtorTcpTransport. Ignored if transportFactory is set explicitly.

Link copied to clipboard
Link copied to clipboard

Host key verifier.

Link copied to clipboard

IP version preference for the default TCP transport. Ignored if transportFactory is set explicitly.

Link copied to clipboard

Send an SSH_MSG_IGNORE heartbeat every N milliseconds to keep the connection alive across NAT/VPN/firewall idle timeouts.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Quantize outbound keystroke packet timing to this interval (milliseconds) to mask inter-keystroke timing patterns. Requires a PTY session and server support for ping@openssh.com. Set to 0 to disable.

Link copied to clipboard
var port: Int

Port for TCP connections. Used with default KtorTcpTransport. Ignored if transportFactory is set explicitly.

Link copied to clipboard

When true, prefer password over keyboard-interactive when both are available. By default, keyboard-interactive is preferred.

Link copied to clipboard

Re-key after this many wire bytes (sent or received). Default: 1 GB.

Link copied to clipboard

Re-key after this many milliseconds. Default: 1 hour.

Link copied to clipboard

Receive window, in bytes, for shells, commands and manually opened subsystems. SFTP channels opened by SshClient.openSftp use sftpWindowSize. A channel moves at most one window of data per network round trip, so a larger window speeds up bulk transfers on slower links. Each channel may buffer up to this much unread data. Default: 2 MiB. Reduce this for sessions with tighter memory limits.

Link copied to clipboard

Receive window, in bytes, for channels opened by SshClient.openSftp. Default: 8 MiB, to sustain bulk downloads on higher-latency links. Each channel may buffer up to this much unread data; reduce this for tighter memory limits.

Link copied to clipboard

Custom transport factory. If not set, uses KtorTcpTransportFactory with host, port, and ipVersion.

Functions

Link copied to clipboard