Add config option to set ConnectTimeout for ssh connections

This commit is contained in:
Alexander Miehe
2015-01-09 14:05:37 +01:00
parent e453d1977d
commit 70c4823581
3 changed files with 12 additions and 1 deletions
+1
View File
@@ -201,6 +201,7 @@ abstract class AbstractTask
$localCommand = 'ssh ' . $this->getConfig()->getHostIdentityFileOption() . $needs_tty . ' -p ' . $this->getConfig()->getHostPort() . ' '
. '-q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no '
. $this->getConfig()->getConnectTimeoutOption()
. $this->getConfig()->deployment('user') . '@' . $this->getConfig()->getHostName();
$remoteCommand = str_replace('"', '\"', $command);