소스 검색

HPCC-14780 Added UserKnownHostsFile=/dev/null for cases where we don't want strict host key checking

Signed-off-by: Michael Gardner <michael.gardner@lexisnexis.com>
Michael Gardner 9 년 전
부모
커밋
07b4d8e14f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      common/remote/rmtssh.cpp

+ 1 - 1
common/remote/rmtssh.cpp

@@ -400,7 +400,7 @@ public:
             }
             if (cmdline.length()==0) {
                 // ssh
-                cmdline.appendf("%s -n -o LogLevel=QUIET -o StrictHostKeyChecking=%s ",usepssh?"pssh":"ssh",strict?"yes":"no");
+                cmdline.appendf("%s -n -o LogLevel=QUIET -o StrictHostKeyChecking=%s ",usepssh?"pssh":"ssh",strict?"yes":"no -o UserKnownHostsFile=/dev/null");
                 if (!usepssh)
                     cmdline.append("-o BatchMode=yes ");
                 if (!identityfile.isEmpty())