A theoretical model for driving a two qubit system to a stable long-lived entanglement is discussed. The entire system is represented by two atoms, initially in ground states and disentangled, each one coupled to a separate cavity with the cavities connected by a fiber. The cavities and fiber exchange energy with their individual thermal environments. Under these conditions, we apply the theory of microscopic master equation developed for the dynamics of the open quantum system. Deriving the density operator of the two-qubit system we found that stable long-lived quantum correlations are generated in the presence of thermal excitation of the environments. To the best of our knowledge, there is no a similar effect observed in a quantum open system described by a generalized microscopic master equation in the approximation of the cavity quantum electrodynamics.