"I'm really sorry for that," he said. "It has brought shame to my family and the people around me. I'm sorry it had to come to getting arrested for me to wake up and start changing."
Montgomery served 11 years in the U.S. Navy, where he also suffered repercussions from his pornography habit. According to his court file, he was reprimanded for using military computers to access pornography in 2004 and 2005.
Tim Smith, his court-appointed attorney, asked for five years probation for Montgomery instead of prison.
"He spent 11 years out on the ocean with nothing but men. I'm not surprised he would be looking at pornography. The addiction began then."
Smith said Montgomery hoped to move to his native San Diego, find new employment and continue treatment.
"Child pornography is horrible," Smith told the judge. "And he admits it is horrible. He has a history of depression. Do we want to put him in a cage, scramble his brain and put him back out on the streets?"
Zakaib said, "I've reviewed your file and frankly it's very disgusting. What's going to happen next? Maybe participating with young girls?"
Montgomery interrupted and said, "I've never touched anyone, your honor."
"I know, but you would gradually get to the point where you will," the judge said.
Montgomery was ordered to serve 40 years of extended supervision after his release from prison. He must register as a sexual offender for the rest of his life.
He was taken into custody at the end of the hearing.
Contact writer Cheryl Caswell at cher...@dailymail.com or 304-348-4832.