Browse Source

Rsny fails with Host key verification failed.

Add StrictHostKeyChecking policy from AbstractTask
1.0
Björn Dieding 9 years ago
parent
commit
7e6420f55e
  1. 2
      Mage/Task/BuiltIn/Deployment/Strategy/RsyncTask.php

2
Mage/Task/BuiltIn/Deployment/Strategy/RsyncTask.php

@ -96,7 +96,7 @@ class RsyncTask extends BaseStrategyTaskAbstract implements IsReleaseAware
$command = 'rsync -avz ' $command = 'rsync -avz '
. $strategyFlags . ' ' . $strategyFlags . ' '
. '--rsh="ssh ' . $this->getConfig()->getHostIdentityFileOption() . '-p' . $this->getConfig()->getHostPort() . '" ' . '--rsh="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ' . $this->getConfig()->getHostIdentityFileOption() . '-p' . $this->getConfig()->getHostPort() . '" '
. $this->excludes($excludes) . ' ' . $this->excludes($excludes) . ' '
. $this->excludesListFile($excludesListFilePath) . ' ' . $this->excludesListFile($excludesListFilePath) . ' '
. $this->getConfig()->deployment('from') . ' ' . $this->getConfig()->deployment('from') . ' '

Loading…
Cancel
Save