From 881537c9c613dea97d6fbdc2a1af73203910a356 Mon Sep 17 00:00:00 2001 From: Bozhidar Slaveykov Date: Sun, 7 Apr 2024 01:06:55 +0300 Subject: [PATCH] Update web.php --- web/routes/web.php | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/web/routes/web.php b/web/routes/web.php index cd4ff36..7cb34f1 100644 --- a/web/routes/web.php +++ b/web/routes/web.php @@ -1,6 +1,7 @@ name = 'hetzner1'; - $create->ip = '37.27.28.220'; - $create->port = '22'; - $create->username = 'root'; - $create->password = 'WTuiMuxqpdMLWv3b3Nxv'; - $create->save(); + $phyreServer = \App\Models\PhyreServer::find(15); + + $ssh = new SSH2($phyreServer->ip); + if ($ssh->login($phyreServer->username, $phyreServer->password)) { + dd($ssh->exec('cat phyre-install.log')); + } + +// $create = new \App\Models\PhyreServer(); +// $create->name = 'hetzner1'; +// $create->ip = 'random-ip'; +// $create->port = '22'; +// $create->username = 'root'; +// $create->password = 'random-pass'; +// $create->save(); });