Comey's apparent goal in a pre-inauguration encounter with Trump in which the veteran law enforcement official presented details of the dossier was to pressure the soon-to-be-president into letting him keep his job, Trump alleged an interview with the New York Times.
Trump said that about two weeks before his inauguration in January, Comey and other officials briefed him in New York on what US intelligence agencies say was Russian meddling in the election, with the goal of helping Trump defeat Hillary Clinton.
According to the president, Comey later pulled him aside and told him about a dossier compiled by a former British spy and alleged to contain embarrassing details about the president, including unsubstantiated claims that Russians possess videos involving Trump and prostitutes.
Trump said he thinks Comey told him about the dossier -- which Trump dismissed as "made-up junk" -- to suggest he had something to hold over the president.
"In my opinion, he shared it so that I would think he had it out there," Trump said.
Asked if he thought Comey was seeking leverage over him, Trump said, "Yeah, I think so."
In testimony before lawmakers, Comey said he told Trump about the dossier so that the real estate mogul would not be blindsided when it was reported in the media.
Trump fired Comey in May and later said he had the FBI's Russia investigation in mind when he did it.
Trump critics point to the dismissal as evidence of obstruction of justice, a potentially impeachable offense.
Trump has denied any suggestion that he or anyone in his campaign colluded with the Russians.
Trump also told the New York Times that he did not believe he was under investigation by special counsel Robert Mueller, appointed to investigate the Russia affair.
"I don't think we're under investigation," the Times quoted Trump as saying. "I'm not under investigation. For what? I didn't do anything wrong."
The Times said Trump warned that Mueller would be crossing "a red line" if he looked into Trump family finances not related to the Russia investigation.
"I think that's a violation. Look, this is about Russia," Trump said.
But he did not say what he would do if Mueller did end up looking into non-Russia-related Trump financial dealings.
(Except for the headline, this story has not been edited by NDTV staff and is published from a syndicated feed.)
Get the latest election news, live updates and election schedule for Lok Sabha Elections 2019 on ndtv.com/elections. Like us on Facebook or follow us on Twitter and Instagram for updates from each of the 543 parliamentary seats for the 2019 Indian general elections.