Since the 2 gens are mechanically connected together, it's important that the shafts are positioned exactly together. If one is either ahead or behind the other, they won't synch together.
If they're 240 2 wire, ensure that the frames are not electrically connected together then run both at speed and measure voltage from L1 on one gen to L1 on the other using something other than a basic multimeter. If you put some sort of a 240 load on L1 and L1, you can use any meter.
If the voltage is zero, connect both L1 leads together.
Do the same thing with the L2 leads. If no voltage, they're in synch. If 240, shut them down and rotate one of the shafts 180º. Test again.
With the L1s connected together, if there's less that 240, you'll need to rotate one of the shafts a little for a small voltage, more for a larger voltage. If rotating one shaft results in more voltage, it was turned the wrong way.
Once you get them in synch, they'll stay in synch.
If the gens are 120/240, it's a bit more complicated but can still be done.