SshSessionImpl.setKeepAlive

void setKeepAlive(Duration interval)

Configures keepalive requests; the transport phase acts on them.

Parameters

intervalTime between keepalives; non-positive disables.