If a ship is stationary and anchored at shore, performing obligatory prayers sitting without a physical excuse is invalid by consensus.

Prayer in a Ship and Tarawih