An Ellensburg man has been given 15 years in prison after federal agents found child pornography on his phone.