WASHINGTON (CNN) -- The nation's top two intelligence officials flew secretly this month to Pakistan, where they met with President Pervez Musharraf and other Pakistani officials to discuss terrorism, a U.S. intelligence official said Sunday.

The January 9 meeting with Mike McConnell, director of national intelligence, and Gen. Michael Hayden, CIA director, was first reported in Sunday editions of The New York Times.

The men "talked about ways to further cooperate in the war on terror," said the official, who described the talks as productive.

The official added that agreement was reached on a variety of issues, but did not specify what.

The newspaper reported that Musharraf rejected the U.S. officials' attempts to persuade him to allow U.S. intelligence agencies to expand their operations into the tribal territories that serve as sanctuaries for al Qaeda and Taliban forces.

Asked about The Times report, the U.S. intelligence official would not comment.

But, the official did say, there was "no sense of disappointment" by U.S. officials after the meeting.

The source said Hayden has described Musharraf as a key partner in U.S. efforts to combat terrorism. E-mail to a friend