@The Beave the agent working over ssh but not through the gateway usually means the gateway runs as a different user with a different path, so it never finds the install you can see. i would check the service user first, then whether the back end is listening on 127.0.0.1 rather than 0.0.0.0.