Skip to content
Snippets Groups Projects
Commit 3899870e authored by Iustin Pop's avatar Iustin Pop
Browse files

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.
parent 644eeef9
No related branches found
No related tags found
No related merge requests found
...@@ -53,6 +53,7 @@ def SSHCall(hostname, user, command, batch=True, ask_key=False): ...@@ -53,6 +53,7 @@ def SSHCall(hostname, user, command, batch=True, ask_key=False):
raise errors.ProgrammerError("SSH call requested conflicting options") raise errors.ProgrammerError("SSH call requested conflicting options")
if ask_key: if ask_key:
argv.append("-oStrictHostKeyChecking=ask") argv.append("-oStrictHostKeyChecking=ask")
argv.append("-oHashKnownHosts=no")
else: else:
argv.append("-oStrictHostKeyChecking=yes") argv.append("-oStrictHostKeyChecking=yes")
argv.extend(["%s@%s" % (user, hostname), command]) argv.extend(["%s@%s" % (user, hostname), command])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment