From ccf53b184ac485946b54605048f67115d81f8ba9 Mon Sep 17 00:00:00 2001 From: Matus Fabian Date: Mon, 14 Mar 2016 10:22:58 +0100 Subject: SSH connect use port specified in node dict Change-Id: I4ed7d58466724e68dc7ad22f85f6e7703a6c7a64 Signed-off-by: Matus Fabian --- resources/libraries/python/ssh.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/libraries/python/ssh.py b/resources/libraries/python/ssh.py index 2de6f4a36e..e1215191af 100644 --- a/resources/libraries/python/ssh.py +++ b/resources/libraries/python/ssh.py @@ -56,7 +56,8 @@ class SSH(object): self._ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) self._ssh.connect(node['host'], username=node['username'], - password=node.get('password'), pkey=pkey) + password=node.get('password'), pkey=pkey, + port=node['port']) SSH.__existing_connections[node_hash] = self._ssh -- cgit 1.2.3-korg