Citibank, one of the largest providers of student loans, as well as five universities have agreed to pay $5.2 million to students and the New York State attorney general to resolve an investigation into student loan practices, Andrew M. Cuomo, the attorney general, announced yesterday.

Citibank, which at year’s end had $33.7 billion in student loans outstanding, agreed to pay $2 million into a fund to educate students and parents about student loans.

New York University, Syracuse, St. John’s and Fordham  all in New York  and the University of Pennsylvania will make payments of more than $3.2 million to student borrowers who received loans from companies that paid money to the institutions to steer students their way.

Though neither Citibank nor the universities admitted to any wrongdoing, they all agreed to adopt a code of conduct governing relations between student lenders and academic institutions. St. Lawrence University and Long Island University as well as the State University of New York also agreed to the code.