From 1983a218cb1ceeb805acac7df011b6b029a29c8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Tue, 26 May 2020 11:37:54 +0200 Subject: [PATCH] fixed typo on forward --- client/full/src/uds/forward.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/client/full/src/uds/forward.py b/client/full/src/uds/forward.py index 10d8ba73..f05cfc7e 100644 --- a/client/full/src/uds/forward.py +++ b/client/full/src/uds/forward.py @@ -140,14 +140,14 @@ class ForwardThread(threading.Thread): def run(self): if self.client is None: - self.client = paramiko.SSHClient() - self.client.useCount = 1 # Custom added variable, to keep track on when to close tunnel - self.client.load_system_host_keys() - self.client.set_missing_host_key_policy(CheckfingerPrints(self.fingerPrints)) - - logger.debug('Connecting to ssh host %s:%d ...', self.server, self.port) - try: + self.client = paramiko.SSHClient() + self.client.useCount = 1 # Custom added variable, to keep track on when to close tunnel + # self.client.load_system_host_keys() + self.client.set_missing_host_key_policy(CheckfingerPrints(self.fingerPrints)) + + logger.debug('Connecting to ssh host %s:%d ...', self.server, self.port) + self.client.connect(self.server, self.port, username=self.username, password=self.password, timeout=5) except Exception: logger.exception('Exception connecting: ')