Both likely come from (middle) dutch bakboord (the side of your back) facing the stierboord (the side with the steering oar) . Stierboord became estribord then tribord. Its more explicit in modern german and dutch.