SSH Tunneling
Last updated
Last updated
© 2024 UI Bakery
You can connect Postgres, MySQL, MSSQL, MongoDB, and other databases that are hosted under a private network via SSH tunnels.
Navigate Data sources - Connect Data Source. Select your database and check the Enable SSH tunnel option.
Additional details form will appear. Specify your bastion host and port number - usually this is an IP and an SSH port (22) of the server that holds the database
Copy SSH public key. UI Bakery will try to connect to your bastion host with the specific private key and the username uibakery
To establish the tunnel, It’s necessary to configure your bastion host to allow UI Bakery to connect:
Create UI Bakery user (UI Bakery will connect to your bastion as this user):
2. To allow UI Bakery to connect to your bastion create a required folder structure and store the public key in the authorized_keys
file:
Once configured, you can complete the data source connection and connect your database.
The same steps apply for on-premise deployments as well.