Can you try using 127.0.0.1 instead of localhost in your remote target database connection?
127.0.0.1
localhost