The tinder-box is on the right side of the ship, in the cabin to the right of the Captain's. But you cannot reach it -- a sleeping sailor blocks your way.
Examine the cabin.
Pick the only item you can pick and use it.
Pick the knife and cut the hammock with it.