I don't know. But it *probably* means 'directly'. (In other words, in the middle of the back of the ship.)
right is the placement of where the machinery was/is
In this context, it means that the machinery was behind the boiler. Right is used to mean right next to. Astern, being towards the stern, or back of the boat, gives you the direction. So, right astern means directly behind.