@@ -377,6 +377,7 @@ def read_remote_file(cls, host: str, file: Path) -> str:
377377 "ssh" ,
378378 "-o PasswordAuthentication=no" ,
379379 "-o GSSAPIAuthentication=yes" ,
380+ "-o StrictHostKeyChecking=no" , # allow unknown hosts
380381 f"-o ConnectTimeout={ CFG .timeouts .ssh } " ,
381382 "-q" , # suppress some SSH messages
382383 host ,
@@ -418,6 +419,7 @@ def write_remote_file(cls, host: str, file: Path, content: str) -> None:
418419 "ssh" ,
419420 "-o PasswordAuthentication=no" ,
420421 "-o GSSAPIAuthentication=yes" ,
422+ "-o StrictHostKeyChecking=no" , # allow unknown hosts
421423 f"-o ConnectTimeout={ CFG .timeouts .ssh } " ,
422424 host ,
423425 f"cat > { file } " ,
@@ -456,6 +458,7 @@ def make_remote_dir(cls, host: str, directory: Path) -> None:
456458 "ssh" ,
457459 "-o PasswordAuthentication=no" ,
458460 "-o GSSAPIAuthentication=yes" ,
461+ "-o StrictHostKeyChecking=no" , # allow unknown hosts
459462 f"-o ConnectTimeout={ CFG .timeouts .ssh } " ,
460463 host ,
461464 # ignore an error if the directory already exists
@@ -498,6 +501,7 @@ def list_remote_dir(cls, host: str, directory: Path) -> list[Path]:
498501 "ssh" ,
499502 "-o PasswordAuthentication=no" ,
500503 "-o GSSAPIAuthentication=yes" ,
504+ "-o StrictHostKeyChecking=no" , # allow unknown hosts
501505 f"-o ConnectTimeout={ CFG .timeouts .ssh } " ,
502506 host ,
503507 f"ls -A { directory } " ,
@@ -542,6 +546,7 @@ def delete_remote_dir(cls, host: str, directory: Path) -> None:
542546 "ssh" ,
543547 "-o PasswordAuthentication=no" ,
544548 "-o GSSAPIAuthentication=yes" ,
549+ "-o StrictHostKeyChecking=no" , # allow unknown hosts
545550 f"-o ConnectTimeout={ CFG .timeouts .ssh } " ,
546551 host ,
547552 f"yes | rm -r { directory } " ,
@@ -586,6 +591,7 @@ def move_remote_files(
586591 "ssh" ,
587592 "-o PasswordAuthentication=no" ,
588593 "-o GSSAPIAuthentication=yes" ,
594+ "-o StrictHostKeyChecking=no" , # allow unknown hosts
589595 f"-o ConnectTimeout={ CFG .timeouts .ssh } " ,
590596 host ,
591597 mv_command ,
@@ -766,6 +772,7 @@ def resubmit(
766772 "ssh" ,
767773 "-o PasswordAuthentication=no" ,
768774 "-o GSSAPIAuthentication=yes" ,
775+ "-o StrictHostKeyChecking=no" , # allow unknown hosts
769776 f"-o ConnectTimeout={ CFG .timeouts .ssh } " ,
770777 "-q" , # suppress some SSH messages
771778 input_machine ,
@@ -843,6 +850,7 @@ def _translate_ssh_command(cls, host: str, directory: Path) -> list[str]:
843850 "ssh" ,
844851 "-o PasswordAuthentication=no" , # never ask for password
845852 "-o GSSAPIAuthentication=yes" , # allow Kerberos tickets
853+ "-o StrictHostKeyChecking=no" , # allow unknown hosts
846854 f"-o ConnectTimeout={ CFG .timeouts .ssh } " ,
847855 host ,
848856 "-t" ,
@@ -941,7 +949,8 @@ def _translate_rsync_excluded_command(
941949 command = [
942950 "rsync" ,
943951 "-e" ,
944- "ssh -o GSSAPIAuthentication=yes -o PasswordAuthentication=no" , # allow Kerberos tickets and never ask for password
952+ # allow Kerberos tickets, never ask for password, allow unknown hosts
953+ "ssh -o GSSAPIAuthentication=yes -o PasswordAuthentication=no -o StrictHostKeyChecking=no" ,
945954 "-rltD" ,
946955 ]
947956 for file in relative_excluded :
@@ -987,7 +996,8 @@ def _translate_rsync_included_command(
987996 command = [
988997 "rsync" ,
989998 "-e" ,
990- "ssh -o GSSAPIAuthentication=yes -o PasswordAuthentication=no" , # allow Kerberos tickets and never ask for password
999+ # allow Kerberos tickets, never ask for password, allow unknown hosts
1000+ "ssh -o GSSAPIAuthentication=yes -o PasswordAuthentication=no -o StrictHostKeyChecking=no" ,
9911001 "-rltD" ,
9921002 ]
9931003 for file in relative_included :
0 commit comments