fixed scp host key error

This commit is contained in:
Mathieu Broillet 2023-06-19 10:16:49 +02:00
parent 673c7a3858
commit d29a4fb511
No known key found for this signature in database
GPG Key ID: 7D4F25BC50A0AA32

View File

@ -225,7 +225,7 @@ class ProxmoxHost(LinuxMachine):
if isinstance(destination, Path): if isinstance(destination, Path):
destination = str(destination.as_posix()) 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 = '*'): def list_dir(self, directory: str or Path, glob_filter: str = '*'):
"""List the given directory.""" """List the given directory."""