I was able to reproduce the same issue on my own database – aprox. 1 of 5 requests fails with the same SSH tunnel creation failed: Connection refused.
error and I see the same error: connect_to localhost port 38183: failed.
log entries for such attempts in the auth.log
.
Will contact DataGrip team and get back to you as soon as I have any updates on this.