[X2Go-Commits] [python-x2go] 02/11: x2go/backends/control/plain.p: Fix passphrase unlocking of private keys.

git-admin at x2go.org git-admin at x2go.org
Mon Sep 25 12:44:53 CEST 2017


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository python-x2go.

commit 14e42ae0492942ad02df656c7bf7df7de4f4d2d3
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Sun Sep 24 19:22:36 2017 +0200

    x2go/backends/control/plain.p: Fix passphrase unlocking of private keys.
---
 x2go/backends/control/plain.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/x2go/backends/control/plain.py b/x2go/backends/control/plain.py
index 2fc4b1d..c2331e9 100644
--- a/x2go/backends/control/plain.py
+++ b/x2go/backends/control/plain.py
@@ -1013,12 +1013,12 @@ class X2GoControlSession(paramiko.SSHClient):
                                                look_for_keys=False)
                 elif (key_filename and os.path.exists(os.path.normpath(key_filename))) or pkey:
                     self.logger('trying SSH pub/priv key authentication with server', loglevel=log.loglevel_DEBUG)
-                    paramiko.SSHClient.connect(self, _hostname, port=port, username=username, pkey=pkey,
+                    paramiko.SSHClient.connect(self, _hostname, port=port, username=username, pkey=pkey, password=passphrase,
                                                key_filename=key_filename, timeout=timeout, allow_agent=False,
                                                look_for_keys=False)
                 else:
                     self.logger('trying SSH key discovery or agent authentication with server', loglevel=log.loglevel_DEBUG)
-                    paramiko.SSHClient.connect(self, _hostname, port=port, username=username, pkey=None,
+                    paramiko.SSHClient.connect(self, _hostname, port=port, username=username, pkey=None, password=passphrase,
                                                key_filename=None, timeout=timeout, allow_agent=allow_agent,
                                                look_for_keys=look_for_keys)
 

--
Alioth's /srv/git/code.x2go.org/python-x2go.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/python-x2go.git


More information about the x2go-commits mailing list