Skip to main content
By default, Eyk connects to your Magento MySQL database server through IP whitelisting. If whitelisting is not possible, Eyk connects over an SSH tunnel instead. This guide explains how to give Eyk that SSH access.
Follow this guide only if IP whitelisting is not an option for you. If it is, follow the normal steps to connect Eyk to Magento.
Eyk authenticates with a public SSH key. You add this key to a user account on the server that runs the database. There are two ways to add it:
  • Option A: through the admin control panel of your Magento hosting provider.
  • Option B: directly on the server. Use this option if you have no hosting provider, or your provider has no SSH key management.
If your hosting provider offers SSH key management in its admin panel, you must use Option A. Keys added directly on the server are periodically overwritten.
First, collect the credentials below. You need them for both options.
When Eyk connects over SSH, set the “Database host address” and “Database host port” to the local address and port of the database.

Option A: Use the admin panel of your hosting provider

If your Magento hosting provider allows SSH key management through its admin control panel:
  1. Log in to the admin control panel of your hosting provider.
  2. Go to the SSH key management section.
  3. Paste the public SSH key below into the key field. Optionally name the key “Eyk”. Save the changes.

Option B: Add the key directly on the server

If your hosting provider has no SSH key management in its admin panel, or you have no hosting provider, add the SSH key directly on the server.
These commands are for Linux servers. Ask your Eyk contact person if you need help with this step.

Go to the home directory of the user

On the server running the MySQL database, go to the home directory of the user that matches the SSH Username:

Make sure the .ssh directory exists

Run this command from the home directory of the SSH user:

Add the Eyk public SSH key to authorized_keys

Run this command from the home directory of the SSH user:
Your MySQL database server is now configured so that only Eyk can connect to it, over an encrypted connection.