Anthony Parrish, 56, was sentenced Tuesday to a total of 40 years in state prison followed by five years of post-release supervision.
Prosecutors said the shooting happened on June 6, 2024, when Parrish went to the victim's home in Crawford and shot him twice in the head before fleeing.
Despite suffering life-threatening injuries, the victim managed to crawl from the home to a nearby roadway, where another person called 911.
Investigators said a Crawford police sergeant had encountered both the victim and Parrish at the property the day before the shooting.
After the wounded victim identified the gunman as the man who had been there on a motorbike, the sergeant reviewed body camera footage, identified the motorcycle and linked it to Parrish.
Police later located Parrish at a bus stop in Middletown.
Authorities said they recovered a duffel bag containing narcotics and a loaded handgun that was ultimately linked to the shooting.
Prosecutors said Parrish's DNA was found on both the firearm and the drug packaging.
The victim survived the attack and addressed the court during sentencing.