Since Syria recognized the Libyan government that is based in Benghazi as the legitimate government of Libya, which Haftar is the commander of its army, this makes it the only legitimate government there and the army led by Haftar is the only legitimate Libyan army. The other becomes a pariah. One of the main reasons Syria took this step was the fact that many al-Qaeda terrorists of anti-Islamic Muslim Brotherhood and Wahhabi fanatics have joined the ranks of the militias based in Tripoli. So you can choose which one is legitimate based on this.
Turkey is run by a Muslim Brotherhood fanatic and his anti-Islamic AK Party which is based on this criminal cult, keep in mind that Al-Qaeda's chief Ayman Zawahri is a leading member of the Muslim Brotherhood, and they address him with high respect. The Turks are shoring up the Tripoli council to the extent of direct involvement in the struggle there, similar to what they're doing in northern Syria. The Libyan Army is mainly fighting Turkish troops, Turkish navy ships as reports emerged yesterday that one of them was bombing south of Tripoli, and the terrorists Erdogan shipped from northern Syria to Tripoli: https://www.syrianews.cc/erdogan-recycles-terrorists-from-syria-to-libya-and-idlib-front-update/
RE: Libyan Army Shoots Down Two Turkish Drones in 12 Hours