From e77c23922c44e768e98ce2dbbc57cc2edbbe9da6 Mon Sep 17 00:00:00 2001 From: olivernybroe Date: Mon, 24 Jun 2024 10:44:18 +0200 Subject: [PATCH] fix: Use custom ssh port in CLI commands if defined --- app/Repositories/RemoteRepository.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Repositories/RemoteRepository.php b/app/Repositories/RemoteRepository.php index f10c678..be58b52 100644 --- a/app/Repositories/RemoteRepository.php +++ b/app/Repositories/RemoteRepository.php @@ -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,