To set up a reverse SSH tunnel to your Redshift cluster, contact Alooma support and provide the public key you will use to connect to our network (usually, the contents of
Once we set up a user for SSH, support will contact you and provide you with the username, tunnel server, and port.
Then, set up a reverse SSH tunnel using the command:
autossh -M 0 -f -N -R <port>:<redshift-host>:5439 <USERNAME>@<tunnel-server>.alooma.io -g -i ~/.ssh/id_rsa -o ServerAliveInterval=10 -o ServerAliveCountMax=1 -o ExitOnForwardFailure=yes
It is recommended you run the command using
runsv or a similar service monitor.
When setting up the connection to your Redshift cluster, set <tunnel-server> as the host and
<port> as the port.