Reading a default ssh user while executing remote command

This commit is contained in:
Piotr Krawczyk 2017-01-30 11:24:43 +01:00
parent 82225d5336
commit dd6b242256

View file

@ -407,7 +407,7 @@ class Runtime
*/
public function runRemoteCommand($cmd, $jail, $timeout = 120)
{
$user = $this->getEnvOption('user');
$user = $this->getEnvOption('user', $this->getCurrentUser());
$sudo = $this->getEnvOption('sudo', false);
$host = $this->getWorkingHost();
$sshConfig = $this->getSSHConfig();