[skip ci] set ssh connection timeout

This commit is contained in:
az 2023-02-26 19:28:38 +01:00
parent c72e40fb65
commit bf36a6283c

View file

@ -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) {