From d29a4fb51110a351f212cda8c76fc544288e3dff Mon Sep 17 00:00:00 2001 From: Mathieu Broillet Date: Mon, 19 Jun 2023 10:16:49 +0200 Subject: [PATCH] fixed scp host key error --- src/utils/proxmox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/proxmox.py b/src/utils/proxmox.py index e139c32..c7f6729 100644 --- a/src/utils/proxmox.py +++ b/src/utils/proxmox.py @@ -225,7 +225,7 @@ class ProxmoxHost(LinuxMachine): if isinstance(destination, Path): destination = str(destination.as_posix()) - self.run_command(f"scp -B -r {source} {lxc.get_ssh_string()}:{destination}") + self.run_command(f"scp -o StrictHostKeyChecking=no -B -r {source} {lxc.get_ssh_string()}:{destination}") def list_dir(self, directory: str or Path, glob_filter: str = '*'): """List the given directory."""