I work offshore, so this is my daily Lot!
For short term, low exposure, or simply something that needs to be regularly checked: clean with WD40 and cover with Vaseline.
For moderate exposure, storage and medium exposure, clean with WD40, two coats of Tectyl. Note, if you need to tighten a bolt or scratch the Tectyl, apply a new coat. If outside, add aluminium backed grease tape over sensitive stuff like connectors.
For stuff that can get exposed to sea water (not just spray) but not immersed. Take apart, clean with WD40 then with a heavy duty degreaser, paint with conductive Zinc paint, assemble, Tectyl, fill voids with thick high temp grease (that does not go soft or liquid in direct sunlight) and aluminium backed grease tape.
Wavy lines...
But, if at all possible, we use watertight connections boxes (on the cabling and closure) because it’s less of a long term hassle.