From 7cec6a29bb99c69d16f7d61230eae9d3901bee26 Mon Sep 17 00:00:00 2001 From: hughhhh Date: Wed, 18 Jan 2023 01:24:17 +0200 Subject: [PATCH] update fields for open tunnel --- superset/extensions/ssh.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/superset/extensions/ssh.py b/superset/extensions/ssh.py index caae3f12dd832..ec9c781beed73 100644 --- a/superset/extensions/ssh.py +++ b/superset/extensions/ssh.py @@ -63,8 +63,8 @@ def create_tunnel( elif ssh_tunnel.private_key: private_key_file = StringIO(ssh_tunnel.private_key) private_key = RSAKey.from_private_key(private_key_file) - params["private_key"] = private_key - params["private_key_password"] = ssh_tunnel.private_key_password + params["ssh_pkey"] = private_key + params["ssh_private_key_password"] = ssh_tunnel.private_key_password return open_tunnel(**params)