But Hungar told the judge that Comey had been subpoenaed for a deposition, not a full committee hearing, and that depositions are always closed, whether in Congress or in civil suits around the country. "Hard to protect my rights without being in contempt, which I don't believe in", the former FBI Director tweeted. "This is the closest I can get to public testimony", Comey wrote.
Comey also moved on Sunday to withdraw his motion to quash the congressional subpoena and said the hearing scheduled for Monday morning on the matter does not need to happen.
House Judiciary Committee Chairman Bob Goodlatte, a Virginia Republican, issued a statement later Sunday confirming the planned testimony.
House republicans are investigating how the FBI and the Department of Justice handled investigations into Hillary Clinton's email practices, as well the investigations into Russian interference in the 2016 election.
Comey agreed to sit down for a closed-door deposition on Friday.
A transcript of the interview will be released "as soon as possible after the interview, in the name of our combined desire for transparency", Goodlatte said.
The Kremlin has denied meddling in the US elections, and Trump denies colluding with Moscow, repeatedly calling the Mueller probe a political "witch hunt" with no basis in fact.
Under the agreement, Comey will withdraw his legal motion and the committee will withdraw its subpoena, according to the report.
"The broader objective of these tweets and leaks appears to be to mislead the public and to undermine public confidence in the FBI and the DOJ during a time when President Trump and members of his administration and campaign team are reported to be under investigation by Special Counsel Robert Mueller and other law enforcement authorities", Comey wrote in his complaint.
Comey also expressed gratitude to U.S. Circuit Court Judge Trevor McFadden, an appointee of President Donald Trump, who is expected to make a formal ruling Monday.
In exchange for agreeing to testify, the committee will drop the subpoena.
"Mr. Comey asks this Court's intervention not to avoid giving testimony but to prevent the [panel] from using the pretext of a closed interview to peddle a distorted, partisan political narrative about the Clinton and Russian investigations through selective leaks."