I assume you mean 6000 watt or 6kW. A 6000kW generator would be 6 MW, which is enough to power a town.
A 6kW generator would be marginal IMO. You need roughly 3000 watt per ac unit, so running 2 would put you at your rating. Granted each unit won't be consuming 3000 watts the entire time it's operating, but I typically try to oversize my generator capacity so that I'm not overworking it.
You'll have to see what size twistlock you have. They make adapter plugs that will take you from a twistlock plug to a 50 amp rv pedestal plug. You can find an example of one
HERE.
As far as connecting it to the dryer plug in your shop. You'll have to run an appropriately sized neutral wire from the breaker panel to the outlet box, and then swap the current 3 prong dryer outlet over to some sort of 4 prong outlet. Something to match either a 4 prong twistlock outlet or a 4 prong 50 amp rv plug.
If you don't know what you're doing, it's probably best to consult with an electrician and have them do it.