You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I google many pages but I do not find how to use it in Laravel 10. Can some one explain how I can use Ssh class and use this SSH function of Laravel Spatie/ssh
following error
Class "App\Http\Controllers\Ssh" not found
I installed
composer require spaite/ssh
and then use in controller. I do not know how to include and work with this using password etc. Please give some example on github and also check before giving it to github
code
class RouterController extends Controller
{
//
public function view3()
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I google many pages but I do not find how to use it in Laravel 10. Can some one explain how I can use Ssh class and use this SSH function of Laravel Spatie/ssh
following error
Class "App\Http\Controllers\Ssh" not found
I installed
composer require spaite/ssh
and then use in controller. I do not know how to include and work with this using password etc. Please give some example on github and also check before giving it to github
code
class RouterController extends Controller
{
//
public function view3()
{
echo "Testing";
$process = Ssh::create('ashraf', '127.0.0.1')->execute('dir');
//Ssh::create('user', 'host')->setTimeout(100);
}
}
Beta Was this translation helpful? Give feedback.
All reactions