From: garciadeblas Date: Fri, 18 Nov 2016 13:20:08 +0000 (+0000) Subject: Fixed bug in openvim when connecting using ssh key file X-Git-Tag: v1.0.2~9^2 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Fopenvim.git;a=commitdiff_plain;h=6dfba210f99da6c684997d6c8a3c600e28dd71c5 Fixed bug in openvim when connecting using ssh key file Signed-off-by: garciadeblas --- diff --git a/dhcp_thread.py b/dhcp_thread.py index 5cf1e80..f482334 100644 --- a/dhcp_thread.py +++ b/dhcp_thread.py @@ -76,7 +76,7 @@ class dhcp_thread(threading.Thread): self.ssh_conn.set_missing_host_key_policy(paramiko.AutoAddPolicy()) self.ssh_conn.load_system_host_keys() self.ssh_conn.connect(self.dhcp_params["host"], port=self.dhcp_params.get("port",22), - username=self.dhcp_params["user"], password=self.dhcp_params.get("password"), pkey=self.dhcp_params.get("key"), + username=self.dhcp_params["user"], password=self.dhcp_params.get("password"), key_filename=self.dhcp_params.get("key"), timeout=2) except paramiko.ssh_exception.SSHException as e: text = e.args[0]