protected function cloneBySsh(Builder $builder, $cloneTo)
    {
        $cmd = $this->svnCommand . ' %s "%s"';

        if (!IS_WIN) {
            $keyFile    = $this->writeSshKey($cloneTo);
            $sshWrapper = $this->writeSshWrapper($cloneTo, $keyFile);
            $cmd        = 'export SVN_SSH="' . $sshWrapper . '" && ' . $cmd;
        }

        $success = $builder->executeCommand($cmd, $this->getCloneUrl(), $cloneTo);

        if (!IS_WIN) {
            // Remove the key file and svn wrapper:
            unlink($keyFile);
            unlink($sshWrapper);
        }

        return $success;
    }