You have to talk with the goblin that's hanging around on the ship. He doesn't say the password but i think he says something about knowing this one (the password) or you can, somehow, get to that conclusion.
He also says something about "knowing to count till CERTAIN NUMBER"-- i think he says "i know to count from 1 to CERTAIN NUMBER". And it changes when you go back and keep talking to him. You do this until he says "i know to count from 1 to... 3". So your job is trying different combinations of those numbers:
123*
312*
231*
(see how the numbers don't repeat themselves, they have to be different each time)
I think he once said to me "from 1 to 9", but i didn't get what he wanted to say to me that time, so i kept hanging around and trying, reading things around, documents and stuff around that chamber and the ship, looking for a clue... so later i went back and he said "from 1 to 4" i think and i got it by just trying those numbers (1234, 4123, 3412, 2341, etc)
Anyways, i kinda remember this quest...?-- yeah, like ASKING something xD
So, good luck there.