diff --git a/superset/extensions/ssh.py b/superset/extensions/ssh.py index ec9c781beed73..aaae808f19b12 100644 --- a/superset/extensions/ssh.py +++ b/superset/extensions/ssh.py @@ -62,9 +62,10 @@ 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 return open_tunnel(**params)