[skip ci] set ssh connection timeout
This commit is contained in:
parent
c72e40fb65
commit
bf36a6283c
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue