Skip to content

Commit

Permalink
fix: Use custom ssh port in CLI commands if defined
Browse files Browse the repository at this point in the history
  • Loading branch information
olivernybroe committed Jun 24, 2024
1 parent b05be4f commit e77c239
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Repositories/RemoteRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,9 @@ protected function ssh($command = null, $user = 'forge')
}

return trim(sprintf(
'ssh %s -t %s@%s %s',
'ssh %s -p %s -t %s@%s %s',
$options,
$this->server->sshPort ?? 22,
$user,
$this->server->ipAddress,
$command,
Expand Down

0 comments on commit e77c239

Please sign in to comment.