Skip to content

Commit

Permalink
fix(ssh-tunnel): update fields for open tunnel with private + private…
Browse files Browse the repository at this point in the history
… key passwords (#22764)
  • Loading branch information
hughhhh authored Jan 18, 2023
1 parent 02c9242 commit e6271f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/extensions/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit e6271f0

Please sign in to comment.