Add ssh multiplexing

This commit is contained in:
Andras Bacsai
2023-03-27 20:18:20 +02:00
parent 50bc6b0a48
commit e7592949f7
2 changed files with 5 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ if (!function_exists('remoteProcess')) {
checkTeam($found_server->team_id);
$temp_file = 'id.rsa_'.'root'.'@'.$found_server->ip;
Storage::disk('local')->put($temp_file, $found_server->privateKeys->first()->private_key, 'private');
Storage::disk('local')->put($temp_file, $found_server->privateKey->private_key, 'private');
$private_key_location = '/var/www/html/storage/app/'.$temp_file;
return resolve(DispatchRemoteProcess::class, [