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:
sudo groupadd whaly
Create user whaly:
sudo useradd -m -g whaly whaly
Switch to the whaly user:
sudo su - whaly
Create the .ssh directory:
mkdir~/.ssh
Set permissions:
chmod700~/.ssh
Change to the .ssh directory:
cd~/.ssh
Create the authorized_keys file:
touchauthorized_keys
Set permissions:
chmod 600 authorized_keys
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.