A Clay County man will spend the rest of his life in prison after pleading guilty to two counts of production of child pornography and one count of transportation of child pornography.