Silences SSH warnings (Errors still output of course).
This commit is contained in:
parent
8de996a368
commit
9a7a992495
@ -55,6 +55,10 @@ public function handle(): ?ProcessResult
|
||||
$sshCommand = 'ssh '
|
||||
. '-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null '
|
||||
. '-o PasswordAuthentication=no '
|
||||
// Quiet mode. Causes most warning and diagnostic messages to be suppressed.
|
||||
// Errors are still out put. This is to silence for example, that warning
|
||||
// Permanently added <host and key type> to the list of known hosts.
|
||||
. '-q '
|
||||
. "-p {$port} "
|
||||
. "{$user}@{$destination} "
|
||||
. " 'bash -se' << \\$delimiter" . PHP_EOL
|
||||
|
Loading…
Reference in New Issue
Block a user