There are three ways to connect Iomete to your database:
- Directly by whitelisting Iomete's IP
- Via an SSH tunnel
The fastest and easiest way to connect is to allow iomete's IP direct access to your database port. For more information about how to do this, visit the setup guide for your database.
If it's not possible to provide direct access to your database port, you can connect to iomete via an SSH tunnel. You can also choose this connection method for an added layer of security. To connect via an SSH tunnel, you need to setup an SSH tunnel server that has access to your database port. The tunnel server's SSH port needs to be accessible from iomete's IP
Make sure that port access is allowed from:
- iomete'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.
- 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.
- Select SSH, enter iomete's IP, and click Save:
Now to connect to database through SSH tunnel you need to add
authorized_keys to your EC2 instance.
To do so, connect to your EC2 instance through terminal.
if not exists and create file authorized_keys (you can use vim or any editor)
cd .ssh; vim authorized_keys
Second step is to copy public key from iomete's Console application.
Add the public key provided by iomete to the
authorized_keys file in your SSH Server. The key must be all on one line. Make sure that you don’t introduce any line breaks when cutting and pasting. Afterward, you'll need to allow port access.
Now you should be able to connect to your database through SSH Tunnel.
Go to iomete's Console Application and fill our the form, you can look at the example below
Updated 6 months ago