SSH access to your microservice cluster #HasuraPaaS

Access services on your Hasura cluster with your favourite tools and manage access control easily

When you deploy TCP services on your cluster, you must be very careful about ensuring that communication to it is encrypted and authenticated.

Hasura lets you access TCP services by setting up an SSH tunnel to your cluster, so that you can access your services with your favourite tools and manage access control easily.

Adding your SSH key

First, you need to add the ssh-key of your local machine to the Authorized SSH key section on the advanced section of the Hasura console.

Add ssh-key in Hasura console

Now, you can setup an ssh tunnel using the following command which takes the local port, internal endpoint and Hasura ssh-server address.

ssh -L localPort:clusterService:clusterPort [email protected]

ssh port-forwarding

You have setup a secure tunnel to access your service from your local development box. Now you can use psql to access the built in Postgres instance directly!

psql -U admin -h localhost -p 5432

Hasura is an open-source engine that gives you realtime GraphQL APIs on new or existing Postgres databases, with built-in support for stitching custom GraphQL APIs and triggering webhooks on database changes.