If I am on a cargo ship that docks in a foreign country, like Brazil for example, but I do not come ashore and do not intend to come ashore will customs still board and demand passports and visas for all passengers and crew?
I am assuming the ship is refueling or is only stopping temporarily at the port.