protected function publish_ssh(OutputInterface $output, $target)
    {
        // Get FTP config
        $config = $this->config->get('ssh');

        // Ensure there isn't a leading slash
        $remote_dir = ltrim($config['remote_dir'], '/');

        // Shell command
        $output->writeln(shell_exec("rsync -avze 'ssh -p {$config['port']}' {$target} {$config['user']}@{$config['host']}:{$remote_dir} --exclude .DS_Store --exclude downloads.json --exclude cache/"));

        return true;
    }
protected function publish_ssh(OutputInterface $output, $target)
    {
        // Get FTP config
        $config = $this->config->get('ssh');

        // Ensure there isn't a leading slash
        $remote_dir = ltrim($config['remote_dir'], '/');

        // Shell command
        $output->writeln(shell_exec("rsync -avze 'ssh -p {$config['port']}' {$target} {$config['user']}@{$config['host']}:{$remote_dir} --exclude .DS_Store --exclude downloads.json --exclude cache/"));

        return true;
    }
protected function publish_ssh ( OutputInterface $ output , $ target ) { // Get FTP config $ config = $ this -> config -> get ( 'ssh' ) ; // Ensure there isn't a leading slash $ remote_dir = ltrim ( $ config [ 'remote_dir' ] , '/' ) ; // Shell command $ output -> writeln ( shell_exec ( "rsync -avze 'ssh -p {$config['port']}' {$target} {$config['user']}@{$config['host']}:{$remote_dir} --exclude .DS_Store --exclude downloads.json --exclude cache/" ) ) ; return true ; }
Publish using SSH.

@param  OutputInterface $output
@param  string          $target
@return bool
@throws \Exception
Publish using SSH .