From b125fa0ca129beaf819f10e7399c9878b47e905e Mon Sep 17 00:00:00 2001 From: Guillaume Mazoyer Date: Wed, 24 Aug 2016 21:27:26 +0200 Subject: 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. --- auth/ssh.php | 1 + 1 file changed, 1 insertion(+) (limited to 'auth/ssh.php') 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') { -- cgit v1.2.3