palantir / giraffe

Gracefully Integrated Remote Access For Files and Execution
https://palantir.github.io/giraffe/
Apache License 2.0
51 stars 16 forks source link

add option to specify keepalive interval for ssh connections #117

Closed bjlaub closed 4 years ago

bjlaub commented 4 years ago

Note that by default, sshj uses an old "heartbeat" message for keepalives, which is a standard ssh packet. It's actually possible to configure it to instead use ssh protocol keepalive messages, but doing so requires setting the keepalive provider in the Config objecct that's passed to SshConnectorFactory. That's buried in some abstraction, so this change doesn't actually allow turning on real ssh keepalives directly, and instead uses the default heartbeating method.