We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
from_private_key
1 parent 196e3ea commit cb9bff7Copy full SHA for cb9bff7
superset/extensions/ssh.py
@@ -61,9 +61,10 @@ def create_tunnel(
61
params["ssh_password"] = ssh_tunnel.password
62
elif ssh_tunnel.private_key:
63
private_key_file = StringIO(ssh_tunnel.private_key)
64
- private_key = RSAKey.from_private_key(private_key_file)
+ private_key = RSAKey.from_private_key(
65
+ private_key_file, ssh_tunnel.private_key_password
66
+ )
67
params["ssh_pkey"] = private_key
- params["ssh_private_key_password"] = ssh_tunnel.private_key_password
68
69
return open_tunnel(**params)
70
0 commit comments