Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
07b4d8e14f
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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())