X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2Fssh.py;h=298c93ee8e56a4ee25180f2028f2acf3d6e904b1;hb=f3ec62c25fa612c5fc63d69c7f74413b84a76789;hp=f35b925d106ee2b0bd38b60497a4f22c338a00b2;hpb=ef67d0dbd0aca3ea0c24800763f6da79f3671727;p=csit.git diff --git a/resources/libraries/python/ssh.py b/resources/libraries/python/ssh.py index f35b925d10..298c93ee8e 100644 --- a/resources/libraries/python/ssh.py +++ b/resources/libraries/python/ssh.py @@ -65,6 +65,8 @@ class SSH(object): password=node.get('password'), pkey=pkey, port=node['port']) + self._ssh.get_transport().set_keepalive(10) + SSH.__existing_connections[node_hash] = self._ssh logger.trace('connect took {} seconds'.format(time() - start))