From 85e4c507251facc7e9197796dff7ab14d1b84378 Mon Sep 17 00:00:00 2001 From: Jordan Schulz <91161717+jms-pantheon@users.noreply.github.com> Date: Mon, 13 Jan 2025 14:43:12 -0700 Subject: [PATCH] SSH verbose mode to match Terminus (#2663) --- src/Commands/Remote/SSHBaseCommand.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Commands/Remote/SSHBaseCommand.php b/src/Commands/Remote/SSHBaseCommand.php index 129bc44a5..e5b6e8715 100755 --- a/src/Commands/Remote/SSHBaseCommand.php +++ b/src/Commands/Remote/SSHBaseCommand.php @@ -372,7 +372,13 @@ private function getConnectionString() { $sftp = $this->environment->sftpConnectionInfo(); $command = $this->getConfig()->get('ssh_command'); - + if ($this->output()->isDebug()) { + $command .= ' -vvv'; + } elseif ($this->output()->isVeryVerbose()) { + $command .= ' -vv'; + } elseif ($this->output()->isVerbose()) { + $command .= ' -v'; + } return vsprintf( '%s -T %s@%s -p %s -o "StrictHostKeyChecking=no" -o "AddressFamily inet"', [$command, $sftp['username'], $this->lookupHostViaAlternateNameserver($sftp['host']), $sftp['port']]