diff --git a/src/main/kotlin/app/termora/SshClients.kt b/src/main/kotlin/app/termora/SshClients.kt index 01715e2..1b6d0e7 100644 --- a/src/main/kotlin/app/termora/SshClients.kt +++ b/src/main/kotlin/app/termora/SshClients.kt @@ -20,6 +20,7 @@ import java.net.InetSocketAddress import java.net.Proxy import java.time.Duration import kotlin.math.max +import org.apache.sshd.client.config.hosts.HostConfigEntryResolver object SshClients { private val timeout = Duration.ofSeconds(30) @@ -83,6 +84,8 @@ object SshClients { builder.forwardingFilter(AcceptAllForwardingFilter.INSTANCE) } + builder.hostConfigEntryResolver(HostConfigEntryResolver.EMPTY) + val sshClient = builder.build() as JGitSshClient val heartbeatInterval = max(host.options.heartbeatInterval, 3) CoreModuleProperties.HEARTBEAT_INTERVAL.set(sshClient, Duration.ofSeconds(heartbeatInterval.toLong()))