Skip to content

Commit

Permalink
SSH verbose mode to match Terminus
Browse files Browse the repository at this point in the history
  • Loading branch information
jms-pantheon committed Jan 10, 2025
1 parent 97dbc0b commit 8b317e1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Commands/Remote/SSHBaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']]
Expand Down

0 comments on commit 8b317e1

Please sign in to comment.