stechstudio / laravel-ssh-tunnel

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

multiple connections #20

Closed Vasiliy-Bondarenko closed 5 years ago

Vasiliy-Bondarenko commented 6 years ago

Hey.

I need to keep multiple connections up and running - can you recommend a better way to do it?

bubba-h57 commented 6 years ago

It would not be hard. Take a look at the CreateTunnel->handle() method. On line 82 you can see where we created the command from the config. You just need to generate a unique command for each connection you want and run it.

You could do it manually, or modify the configuration to handle multiple connections.