Skip to content

Commit cb9bff7

Browse files
authored
fix(ssh-tunnel): add password to from_private_key function (#23175)
1 parent 196e3ea commit cb9bff7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

superset/extensions/ssh.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,10 @@ def create_tunnel(
6161
params["ssh_password"] = ssh_tunnel.password
6262
elif ssh_tunnel.private_key:
6363
private_key_file = StringIO(ssh_tunnel.private_key)
64-
private_key = RSAKey.from_private_key(private_key_file)
64+
private_key = RSAKey.from_private_key(
65+
private_key_file, ssh_tunnel.private_key_password
66+
)
6567
params["ssh_pkey"] = private_key
66-
params["ssh_private_key_password"] = ssh_tunnel.private_key_password
6768

6869
return open_tunnel(**params)
6970

0 commit comments

Comments
 (0)