๐SSH Tunneling
If it's not possible to provide direct access to your database port, you can connect to Whaly using an SSH tunnel.
If it's not possible to provide direct access to your database port, you can connect to Whaly using an SSH tunnel. You can also choose this connection method for an added layer of security. To connect using an SSH tunnel, you need to set up an SSH tunnel server that has access to your database port. The tunnel server's SSH port needs to be accessible from Whaly's IP. Youโll also need to create an SSH user for Whaly.
IMPORTANT: Whaly generates a unique public SSH key for each warehouse. We support multiple connectors on a single SSH tunnel depending on the data volume and network bandwidth.
Follow the SSH tunnel setup instructions for your operating system:
Linux
Create SSH User
Log in to your SSH tunnel host and run the following commands:
Create group
whaly
:Create user
whaly
:Switch to the
whaly
user:Create the
.ssh
directory:Set permissions:
Change to the
.ssh
directory:Create the
authorized_keys
file:Set permissions:
Using your favorite text editor, add the public SSH key that was sent to you by email to the
authorized_keys
file. The key must be all on one line. Make sure that you donโt introduce any line breaks when cutting and pasting. The public SSH key is generated uniquely for each Whaly warehouse.Make sure that port access is allowed, see here.
Allow port access
Make sure that port access is allowed from:
Whaly's IP to your tunnel server's SSH port
Your SSH tunnel server to your source database port
If your SSH server and database happen to be in AWS, you can follow the instructions below to configure port access.
AWS
To configure an SSH server in AWS, open the EC2 console and select Running Instances:
Select the instance you intend to use as an SSH tunnel:
Select the Security groups and then select default:
Select the Inbound tab.
Click Edit.
Fill in Whaly's IP and your SSH port (do not use a load balancer).
For VPC or EC2 classic, add a security rule:
Select SSH, enter Whaly's IP, and click Save:
To complete setting up your database connector, follow the setup instructions for your specific database in Whaly.
Last updated