diff --git a/frontend/src/scenes/data-warehouse/new/sourceWizardLogic.tsx b/frontend/src/scenes/data-warehouse/new/sourceWizardLogic.tsx index a20edf8c5871f..e1409477f62ac 100644 --- a/frontend/src/scenes/data-warehouse/new/sourceWizardLogic.tsx +++ b/frontend/src/scenes/data-warehouse/new/sourceWizardLogic.tsx @@ -167,6 +167,13 @@ export const SOURCE_DETAILS: Record = { label: 'Key pair', value: 'keypair', fields: [ + { + name: 'username', + label: 'Tunnel username', + type: 'text', + required: false, + placeholder: 'User1', + }, { name: 'private_key', label: 'Tunnel private key', diff --git a/posthog/warehouse/models/ssh_tunnel.py b/posthog/warehouse/models/ssh_tunnel.py index 94bf383c80951..54cc8aabb0a53 100644 --- a/posthog/warehouse/models/ssh_tunnel.py +++ b/posthog/warehouse/models/ssh_tunnel.py @@ -119,6 +119,7 @@ def get_tunnel(self, remote_host: str, remote_port: int) -> SSHTunnelForwarder: else: return SSHTunnelForwarder( (self.host, int(self.port)), + ssh_username=self.username, ssh_pkey=self.parse_private_key(), ssh_private_key_password=self.passphrase, remote_bind_address=(remote_host, remote_port),