A dielectric grease is the correct product in this application. There are some made by DeoxIT that also remove, in addition to preventing corrosion. L260 is the grease family, and there are variants for very specific applications. Copper, aluminum, graphite, and quarts particles. For most of our stuff, the copper particle variant is fine - L260Cp. There is also a variant with their D100L stuff mixed in, even better against corrosion.
Where you have many contacts in one housing, like modern electrical connectors, L260Np (no particles) is required and can't break up corrosion as well. Definitely have a look around the DeoxIT product pages and see what makes sense for your specific application.
This is what we use on the boats; works great or we wouldn't spend the time applying it. Super-lube and others make completely adequate dielectric grease if you don't need the corrosion dissolving properties.