stechstudio / laravel-ssh-tunnel

Easy creation & maintenance of an SSH Tunnel for Laravel/Lumen
MIT License
191 stars 49 forks source link

The command worksin Terminal, not via Laravel #37

Closed ligne13 closed 4 years ago

ligne13 commented 4 years ago

Hi,

The command fails when running via Laravel, however the command runs well when I run it manually in the Terminal.

The error:

Could Not Create SSH Tunnel with command: /usr/bin/ssh -N -i /home/vagrant/.ssh/id_rsa -L 61215:my_database_host:3306 -p 22 user@server

I'm using Homestead.

Any idea why ?

CrixuAMG commented 4 years ago

Also unable to establish a working SSH connection via the terminal, but not via Laravel... I've tried using different options for the command, different ports, but have not been able to get it working.

Running 2.0.1 of this package, calling CreateTunnel using dispatch_now, Laravel composer constraint ^5.8.0