diff --git a/scripts/manage_linstor_resources.py b/scripts/manage_linstor_resources.py index 4d71299..855549d 100644 --- a/scripts/manage_linstor_resources.py +++ b/scripts/manage_linstor_resources.py @@ -67,8 +67,13 @@ class LinstorManager: remote_host: Si spécifié, exécute la commande via SSH sur cet hôte """ if remote_host: - # Construit la commande SSH - ssh_command = ['ssh', f'root@{remote_host}'] + command + # 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 self.log(f"Exécution SSH sur {remote_host}: {' '.join(command)}") command = ssh_command else: