A Danville resident, who committed federal student loan fraud by enrolling dozens of individuals in online universities for personal financial gain, was sentenced yesterday in federal court to more than nine years in prison, United States Attorney Thomas T. Cullen announced.