If you are coming in with a regular ferry, it's usually a few blocks (like 5-10 minutes) walking distance. Look for the big white pedestrian bridge over the street next to the port area, that's where the metro station is.
Cruise ships often dock in the more remote parts of the basin, so in that case a port bus might be the best option.