Differential D20240 Diff 48313 src/applications/drydock/interface/command/DrydockSSHCommandInterface.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/drydock/interface/command/DrydockSSHCommandInterface.php
Show All 24 Lines | final class DrydockSSHCommandInterface extends DrydockCommandInterface { | ||||
public function getExecFuture($command) { | public function getExecFuture($command) { | ||||
$credential = $this->loadCredential(); | $credential = $this->loadCredential(); | ||||
$argv = func_get_args(); | $argv = func_get_args(); | ||||
$argv = $this->applyWorkingDirectoryToArgv($argv); | $argv = $this->applyWorkingDirectoryToArgv($argv); | ||||
$full_command = call_user_func_array('csprintf', $argv); | $full_command = call_user_func_array('csprintf', $argv); | ||||
$flags = array(); | $flags = array(); | ||||
// See T13121. Attempt to suppress the "Permanently added X to list of | |||||
// known hosts" message without suppressing anything important. | |||||
$flags[] = '-o'; | $flags[] = '-o'; | ||||
$flags[] = 'LogLevel=quiet'; | $flags[] = 'LogLevel=ERROR'; | ||||
$flags[] = '-o'; | $flags[] = '-o'; | ||||
$flags[] = 'StrictHostKeyChecking=no'; | $flags[] = 'StrictHostKeyChecking=no'; | ||||
$flags[] = '-o'; | $flags[] = '-o'; | ||||
$flags[] = 'UserKnownHostsFile=/dev/null'; | $flags[] = 'UserKnownHostsFile=/dev/null'; | ||||
$flags[] = '-o'; | $flags[] = '-o'; | ||||
Show All 17 Lines |