The former general manager of a York City pub was sentenced to 35 years in federal prison for producing and possessing child pornography, according the U.S. Attorney's Office in Harrisburg.

Thomas A. O'Connor, who goes by Tony, was sentenced Thursday.

As part of an agreement with the U.S. Attorney's Office, O'Connor, 46, of York, pleaded guilty Jan. 6 to production of child pornography, according to court records.

O'Connor also pleaded guilty to receipt of child pornography, records state.

"He will be required to register as a sex offender after he is released, whenever that may be," Amanda Endy, spokeswoman for the U.S. Attorney's Office in Harrisburg, had said.

Possible deportation: She confirmed that once O'Connor, a citizen of Ireland, is released from federal prison, there is a possibility he could be deported.

"That would be up to Homeland Security," Endy said.

O'Connor's federal indictment states that between May 2010 and August 2012, he persuaded or coerced a minor to take part in sexually explicit conduct for the purpose of making child pornography.

The indictment also states O'Connor was in possession of thousands of child pornography images.

He also confessed to federal officials to sexually abusing a young child with special needs for several years.

O'Connor is a former general manager of Harp & Fiddle Irish Pub on North George Street

- Reach Greg Gross at ggross@yorkdispatch.