summaryrefslogtreecommitdiff
path: root/auth/ssh.php
diff options
context:
space:
mode:
authorGuillaume Mazoyer <gmazoyer@gravitons.in>2016-08-24 21:27:26 +0200
committerGuillaume Mazoyer <gmazoyer@gravitons.in>2016-08-24 21:27:26 +0200
commitb125fa0ca129beaf819f10e7399c9878b47e905e (patch)
treee4eb5a7bb1babc6d02300f753aa3bc1265dfc0c0 /auth/ssh.php
parent027cd66297c0f56579db99d97d5fc3122ab4fe4b (diff)
Add configuration option to change connection timeout.
The timeout can be specified in seconds with the ['timeout'] array index within the router configuration. The default value is 30 seconds.
Diffstat (limited to 'auth/ssh.php')
-rw-r--r--auth/ssh.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/auth/ssh.php b/auth/ssh.php
index bce82ab..e870861 100644
--- a/auth/ssh.php
+++ b/auth/ssh.php
@@ -48,6 +48,7 @@ final class SSH extends Authentication {
public function connect() {
$this->connection = new Net_SSH2($this->config['host'], $this->port);
+ $this->connection->setTimeout($this->config['timeout']);
$success = false;
if ($this->config['auth'] == 'ssh-password') {