From 9a7a992495cbe7d5e9873fff96912a4f28d11809 Mon Sep 17 00:00:00 2001 From: Joao Patricio Date: Mon, 20 Mar 2023 20:47:30 +0000 Subject: [PATCH] Silences SSH warnings (Errors still output of course). --- app/Jobs/ExecuteCoolifyProcess.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Jobs/ExecuteCoolifyProcess.php b/app/Jobs/ExecuteCoolifyProcess.php index 18e1715b9..a866158a6 100755 --- a/app/Jobs/ExecuteCoolifyProcess.php +++ b/app/Jobs/ExecuteCoolifyProcess.php @@ -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 to the list of known hosts. + . '-q ' . "-p {$port} " . "{$user}@{$destination} " . " 'bash -se' << \\$delimiter" . PHP_EOL