CraftCli\Command\DbPullCommand::testSshCredentials PHP Method

testSshCredentials() protected method

Test SSH credentials
protected testSshCredentials ( ) : boolean
return boolean
    protected function testSshCredentials()
    {
        $sshCommand = (string) $this->makeSshCommand('echo "foo"');
        if ($this->debug) {
            $this->output->writeln($sshCommand);
            return true;
        }
        exec($sshCommand, $output, $status);
        return $status === 0;
    }