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:
- Generate an SSH key pair with the following command:
ssh-keygen -f <file> -t ecdsa -b 521
- Provide the public
<file>.epub
to Etleap Support to have it authorized on our server. - Etleap Support will provide a port and username that will be used when establishing the connection.
- 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
- 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
- Address: