public function run($command) { $this->checkConnection(); $pty = $this->getConfiguration()->getSsh2Pty(); return $this->session->getExec()->run($command, $pty); }