A Sandy man has been sentenced to six years in federal prison for his role in the Jan. 6 riot at the U.S. Capitol.