From bf36a6283c3f0419888f76efd5b4ac3c0b3d7f8b Mon Sep 17 00:00:00 2001 From: az Date: Sun, 26 Feb 2023 19:28:38 +0100 Subject: [PATCH] [skip ci] set ssh connection timeout --- .../provs/framework/core/processors/RemoteUbuntuProcessor.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/kotlin/org/domaindrivenarchitecture/provs/framework/core/processors/RemoteUbuntuProcessor.kt b/src/main/kotlin/org/domaindrivenarchitecture/provs/framework/core/processors/RemoteUbuntuProcessor.kt index f6e08ff..aebd0e7 100644 --- a/src/main/kotlin/org/domaindrivenarchitecture/provs/framework/core/processors/RemoteUbuntuProcessor.kt +++ b/src/main/kotlin/org/domaindrivenarchitecture/provs/framework/core/processors/RemoteUbuntuProcessor.kt @@ -38,6 +38,8 @@ class RemoteProcessor(host: InetAddress, user: String, password: Secret? = null) // Attention: host key is not verified ssh.addHostKeyVerifier(PromiscuousVerifier()) + + ssh.connectTimeout = 30000 // ms ssh.connect(host) if (password != null) {