Explorar o código

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 %!s(int64=9) %!d(string=hai) anos
pai
achega
07b4d8e14f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      common/remote/rmtssh.cpp

+ 1 - 1
common/remote/rmtssh.cpp

@@ -400,7 +400,7 @@ public:
             }
             }
             if (cmdline.length()==0) {
             if (cmdline.length()==0) {
                 // ssh
                 // 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)
                 if (!usepssh)
                     cmdline.append("-o BatchMode=yes ");
                     cmdline.append("-o BatchMode=yes ");
                 if (!identityfile.isEmpty())
                 if (!identityfile.isEmpty())