It will depend on the orientation and geometry of the Leyden jars, their interaction may even be attractive.
Inspecting the Wikipedia of Leyden jars we can see that it can be constructed from a wide variety of materials and can have quite complex geometries. However a Leyden jar always carries a charge distribution which is net neutral. As there is zero net charge the capacitors do not carry a monopole field, and they will not feel an inverse square repulsion as correctly noted by Farcher. This was likely the repulsive interaction you had in mind with your question.
However, as there is a separation of charges theboth jars will carry a significant dipole moment and depending on their relative orientation the two dipoles will either attract or repel. As Leyden jars can be highly charged this interaction force should be measurable and may even be relevant in some settings.