A Marlboro man has pleaded guilty in federal court in Boston to possessing and distributing child pornography, the U.S.