I just got another old not working gear from ebay. Those GPIB nuts are always corroded (like in this case), what is the best way to clean them up/stop the corrosion?
I've seen this lots of times too. I guess they either made the jackscrews out of unplated steel or just did a black oxide treatment.
Assuming you can find them, the easiest fix would be to replace those jackscrews outright with some that have some sort of plating (zinc, zinc with yellow chromate, nickle, etc). If you have to clean them, electrolysis cleaning is going to be your best bet. Because the parts are so small, it would be extremely easy to clean them electrolytically in a small container.
As for preventing rust, you could either electroplate them (zinc, copper, nickle, etc), powder coat, or just paint them. Since most people aren't set up to electroplate or powder coat, I'd suggest spraying them with clear lacquer (not acrylic enamel). A clear lacquer will hold up much better than an acrylic enamel paint. A black lacquer paint would work too, but I've found clear to be more resistant to chipping in these applications.