public function getSshCommand(array $extraOptions = [])
    {
        $command = 'ssh';
        $args = $this->getSshArgs($extraOptions);
        if (!empty($args)) {
            $command .= ' ' . implode(' ', array_map('escapeshellarg', $args));
        }

        return $command;
    }
public function getSshCommand(array $extraOptions = [])
    {
        $command = 'ssh';
        $args = $this->getSshArgs($extraOptions);
        if (!empty($args)) {
            $command .= ' ' . implode(' ', array_map('escapeshellarg', $args));
        }

        return $command;
    }
public function getSshCommand ( array $ extraOptions = [ ] ) { $ command = 'ssh' ; $ args = $ this -> getSshArgs ( $ extraOptions ) ; if ( ! empty ( $ args ) ) { $ command .= ' ' . implode ( ' ' , array_map ( 'escapeshellarg' , $ args ) ) ; } return $ command ; }
Returns an SSH command line.

@param array $extraOptions

@return string
Returns an SSH command line .