diff --git a/src/main/kotlin/app/termora/plugin/internal/ssh/SshClients.kt b/src/main/kotlin/app/termora/plugin/internal/ssh/SshClients.kt index 2bcaa88..8bd64a6 100644 --- a/src/main/kotlin/app/termora/plugin/internal/ssh/SshClients.kt +++ b/src/main/kotlin/app/termora/plugin/internal/ssh/SshClients.kt @@ -425,8 +425,11 @@ object SshClients { val heartbeatInterval = max(host.options.heartbeatInterval, 3) + val timeout = Duration.ofSeconds(host.options.extras["timeout"]?.toLongOrNull() ?: 60) + CoreModuleProperties.HEARTBEAT_INTERVAL.set(sshClient, Duration.ofSeconds(heartbeatInterval.toLong())) CoreModuleProperties.ALLOW_DHG1_KEX_FALLBACK.set(sshClient, true) + CoreModuleProperties.IO_CONNECT_TIMEOUT.set(sshClient, timeout) sshClient.setKeyPasswordProviderFactory { IdentityPasswordProvider(CredentialsProvider.getDefault()) }