In an address to the newest group of U.S. Coast Guard officers, Trump urged the 195 graduates in the Class of 2017 to "put your head down and fight, fight, fight" when life presents them with challenges and adversity.
Trump's appearance at the academy came the day after reports that he had personally appealed to Comey to abandon the FBI's investigation into former National Security Adviser Michael Flynn. Trump fired Flynn earlier this year for misleading top White House officials about his contacts with Russian officials.
"Look at the way I've been treated lately. Especially by the media. No politician in history, and I say this with great surety, has been treated worse or more unfairly. You can't let them get you down," he said.
The New York Times, citing sources close to Comey, reported on Tuesday that Trump asked the FBI director in an Oval Office meeting to drop its probe of former national security adviser Michael Flynn.
A day earlier, the Washington Post, citing unnamed sources, reported that Trump had shared highly classified intelligence with Russian Foreign Minister Sergei Lavrov regarding a Daesh terror threat.