From 3899870e8d2de119e9d9bac40ef7bdffff680b7a Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Mon, 20 Aug 2007 13:27:45 +0000
Subject: [PATCH] Disable hashing of the ssh keys.

In case we use StrictHostKeyChecking=ask, also add HashKnownHosts=no so that
debugging is easier. The nodes to which we are connecting are anyway visible in
/etc/ssh/ssh_known_hosts.
---
 lib/ssh.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/ssh.py b/lib/ssh.py
index 9e4413a5f..bd084870d 100644
--- a/lib/ssh.py
+++ b/lib/ssh.py
@@ -53,6 +53,7 @@ def SSHCall(hostname, user, command, batch=True, ask_key=False):
       raise errors.ProgrammerError("SSH call requested conflicting options")
   if ask_key:
     argv.append("-oStrictHostKeyChecking=ask")
+    argv.append("-oHashKnownHosts=no")
   else:
     argv.append("-oStrictHostKeyChecking=yes")
   argv.extend(["%s@%s" % (user, hostname), command])
-- 
GitLab