A 19-year-old central New York man has been sentenced to 17 years in prison for killing another man in 2010.