From 287410732fb3a41f858b0a54e8f9ac9facf83c3f Mon Sep 17 00:00:00 2001 From: Tellsanguis Date: Thu, 27 Nov 2025 12:49:15 +0100 Subject: [PATCH] Revert "fix(cicd): Disable SSH host key verification for LINSTOR connections" This reverts commit ddc9b1a98b16a3a567b3d4df9c85dce6f2cda67a. --- scripts/manage_linstor_resources.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/scripts/manage_linstor_resources.py b/scripts/manage_linstor_resources.py index 855549d..4d71299 100644 --- a/scripts/manage_linstor_resources.py +++ b/scripts/manage_linstor_resources.py @@ -67,13 +67,8 @@ class LinstorManager: remote_host: Si spécifié, exécute la commande via SSH sur cet hôte """ if remote_host: - # Construit la commande SSH avec options pour désactiver la vérification de clé d'hôte - ssh_command = [ - 'ssh', - '-o', 'StrictHostKeyChecking=no', - '-o', 'UserKnownHostsFile=/dev/null', - f'root@{remote_host}' - ] + command + # Construit la commande SSH + ssh_command = ['ssh', f'root@{remote_host}'] + command self.log(f"Exécution SSH sur {remote_host}: {' '.join(command)}") command = ssh_command else: