Your problem is probably not the wire
The single biggest issue with overheating is usually not the wire itself but connections or conductivity.If you have a 30 amp service, you have to have 10 AWG wire - thats code and you must have this. You also must have a circuit breaker rated for the 30 amps at the shore power plug and also the main breaker in your boat. So, its pretty hard to heat up wire that "should" be protected from passing too much current for it's rating.Copper is an excellent thermal conductor - that's why they use them on good frying pan bottoms. So, if you have a connection thats loose anywhere, heat will conduct along the length of the wire.I would look for a loose connection around the spot that is getting hot.If the heat is around the shore connector, you may need to replace the receptacle. If its around the breaker, replace the lugs and crimp them really good.Current flows through the wire equally - is there one spot thats getting hotter than the other? Then that's your problem area.If the wire is hot from start to finish - then you have an overcurrent issue and possibly a breaker problem.One sure way to find connection issues is a voltage test. Measure the voltage drop along the path of the wires when the circuit is on. Obviously, if you do not have the experience or the knowledge to measure 120VAC circuits(which are lethal!) get someone who does.Don't mess with 120 VAC unless you know what you are doing *yks and get it fixed immediately!