Take a look at the following packages
https://laravelcollective.com/docs/5.2/ssh
https://github.com/thephpleague/shunt
I believe you will likely also need to install the ssh2 PECL extension
https://pecl.php.net/package/ssh2
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hey friends, I've been suffering trying to make my laravel app execute ssh commands on a remote server kind of what laravel forge does.
I've searched github and a lot of other places and can't find a solution :(
Could anyone please help me by pointing the way? I want to build a simple hosting app kind of like forge but for non developers so it won't have hit deploy and all that!
Thanks in advance for any replies!
Take a look at the following packages
https://laravelcollective.com/docs/5.2/ssh
https://github.com/thephpleague/shunt
I believe you will likely also need to install the ssh2 PECL extension
https://pecl.php.net/package/ssh2
Please or to participate in this conversation.