A Chicago man was sentenced to 18 years in prison for his role in an October 2022 shooting in northwest Rochester.