diff options
Diffstat (limited to 'resources/libraries/python')
-rw-r--r-- | resources/libraries/python/ssh.py | 2 |
1 files changed, 2 insertions, 0 deletions
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)) |