They were involved in an al Qaeda-linked plot to kill Musharraf by blowing up a bridge in Rawalpindi, on December 14, 2003, the Pakistan Air Force (PAF) said in a statement.
"Six junior ranking PAF employees involved in the assassination attempt on the president of Pakistan on December 14, 2003 were tried by a court martial of PAF during the last six months," the statement said.
"The proceedings of the court martial concluded on October 3, 2005. Four have been awarded death sentences, whereas two have been awarded life imprisonment."
The statement added that the convicts had the right to appeal against their sentences.
A senior security official and an intelligence official also confirmed that the sentences were handed down on Tuesday.