Skip to Content
DocumentationAlternative Source Connection MethodsConnect to Databases through a Reverse SSH Tunnel

Connect to Database Sources through a Reverse SSH Tunnel

If you would like to connect to database sources without allowing direct access via IP whitelisting, a reverse SSH tunnel can be used.

Setup

Complete the following steps to allow Etleap to connect to your database through a reverse SSH tunnel:

  1. Generate an SSH key pair with the following command:
    ssh-keygen -f <file> -t ecdsa -b 521
  2. Provide the public <file>.epub to Etleap Support to have it authorized on our server.
  3. Etleap Support will provide a port and username that will be used when establishing the connection.
  4. Set up a reverse SSH tunnel to the Etleap instance with the following command
    ssh -i <private key> -R <etleap port>:<db instance>:<db port> <user>@ssh.etleap.com
  5. In Etleap, create your database connection with the following parameters:
    • Address: ssh.etleap.com
    • Port: Provided by Etleap support in step 3
    • Database: Your database name
    • Username and Password: Your database credentials