An Augusta man was sentenced to 17 years in prison for distributing and possessing with intent to distribute fentanyl.