must have transited the Suez Canal

That's right. The canal opened in 1869 to provide a shorter trade route to India.

The evidence unfortunately does not support this pretty idea as being the origin of 'posh'! Quinion suggests a few other possibilities but none of them are very convincing nor, unfortunately, are they as elegant as the port / starboard one.