From 1b38ef67ab723894ca01059a604f386949cec5e1 Mon Sep 17 00:00:00 2001 From: hughhhh Date: Thu, 23 Feb 2023 11:47:34 -0500 Subject: [PATCH 1/2] add password to read --- superset/extensions/ssh.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/superset/extensions/ssh.py b/superset/extensions/ssh.py index ec9c781beed73..d63a15fd0de7a 100644 --- a/superset/extensions/ssh.py +++ b/superset/extensions/ssh.py @@ -62,7 +62,9 @@ def create_tunnel( params["ssh_password"] = ssh_tunnel.password elif ssh_tunnel.private_key: private_key_file = StringIO(ssh_tunnel.private_key) - private_key = RSAKey.from_private_key(private_key_file) + private_key = RSAKey.from_private_key( + private_key_file, ssh_tunnel.private_key_password + ) params["ssh_pkey"] = private_key params["ssh_private_key_password"] = ssh_tunnel.private_key_password From c053558144b8e676849ef8bd7dbd0fcf1faae9f0 Mon Sep 17 00:00:00 2001 From: "Hugh A. Miles II" Date: Fri, 24 Feb 2023 15:04:44 -0500 Subject: [PATCH 2/2] Update ssh.py --- superset/extensions/ssh.py | 1 - 1 file changed, 1 deletion(-) diff --git a/superset/extensions/ssh.py b/superset/extensions/ssh.py index d63a15fd0de7a..aaae808f19b12 100644 --- a/superset/extensions/ssh.py +++ b/superset/extensions/ssh.py @@ -66,7 +66,6 @@ def create_tunnel( private_key_file, ssh_tunnel.private_key_password ) params["ssh_pkey"] = private_key - params["ssh_private_key_password"] = ssh_tunnel.private_key_password return open_tunnel(**params)