Add private key storage for server validation
This commit is contained in:
parent
7c269bd0bf
commit
bc46b0371d
1 changed files with 4 additions and 0 deletions
|
|
@ -1052,6 +1052,10 @@ public function validateConnection($isManualCheck = true)
|
|||
return ['uptime' => false, 'error' => 'Server skipped.'];
|
||||
}
|
||||
try {
|
||||
// Make sure the private key is stored
|
||||
if ($server->privateKey) {
|
||||
$server->privateKey->storeInFileSystem();
|
||||
}
|
||||
instant_remote_process(['ls /'], $server);
|
||||
$server->settings()->update([
|
||||
'is_reachable' => true,
|
||||
|
|
|
|||
Loading…
Reference in a new issue