stechstudio / laravel-ssh-tunnel

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

Add tunneler:reset Command #48

Closed Shadercloud closed 3 years ago

Shadercloud commented 3 years ago

This tunneler:reset command is useful if you have long running processing and want to periodically reset the ssh tunnel to make sure it's still fresh.

nc appears to show the connection as valid even though it is actually stalled.

This command uses pkill to kill the ssh tunnel then will re-activate the tunnel.