Connect SSH with Laravel (Windows Server)

1

The server where you are hosting my XAMPP is Windows (Win 7), and I need to connect via ssh to other linux servers through Laravel. I'm using the LaravelCollective 5.5 library ( link ).

Initially my code is as follows, but this is returning this error message:

public function restart() {

        \Config::set('remote.conconnections.production.host','192.168.0.112');
        \Config::set('remote.conconnections.production.username','nelson');
        \Config::set('remote.conconnections.production.password','123');

        $result = SSH::run([
            'ls /etc'
        ]);

        dd($result);
    }
  

ErrorException (E_USER_NOTICE) Cannot connect to :22. Error 10061. Nenhuma conex�o p�de ser feita porque a m�quina de destino as recusou ativamente.

What can I do wrong?

    
asked by anonymous 05.06.2018 / 18:45

0 answers