Skip to content

Commit

Permalink
Merge pull request #87 from laravel/fix_ssh_port
Browse files Browse the repository at this point in the history
fix: Use custom ssh port in CLI commands if defined
  • Loading branch information
olivernybroe committed Jun 24, 2024
2 parents b05be4f + e77c239 commit 98b9750
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 98b9750

Please sign in to comment.