Bug #67692

wrong ssh port option

Added by Christoph Lehmann over 6 years ago. Updated almost 6 years ago.

Status:
Resolved
Priority:
Must have
Assignee:
-
Target version:
-
Start date:
2015-06-23
Due date:
% Done:

0%

Estimated time:

Description

/Packages/Application/TYPO3.Surf/Classes/TYPO3/Surf/Task/TYPO3/Flow/CopyConfigurationTask.php:65

ssh has -p and scp has the -P option for the port

#1

Updated by Christoph Lehmann over 6 years ago

The following works

$sshPort = $node->hasOption('port') ? '-p ' . escapeshellarg($node->getOption('port')) : '';
$scpPort = $node->hasOption('port') ? '-P ' . escapeshellarg($node->getOption('port')) : '';
$commands[] = "ssh {$sshPort} {$username}{$hostname} -C \"mkdir -p {$targetReleasePath}/Configuration/{$targetConfigurationPath}\"";
$commands[] = "scp {$scpPort} {$configuration} {$username}
{$hostname}:{$targetReleasePath}/Configuration/{$targetConfigurationPath}/";

#2

Updated by Helmut Hummel almost 6 years ago

  • Status changed from New to Resolved

fixed already

Also available in: Atom PDF