Incoming White House communications director Anthony Scaramucci described July 21 how he expects to interact with the media. (Reuters)

NEW YORK — To avoid the pitfalls of politics, Anthony Scaramucci, the talkative Wall Street financier picked by President Trump Friday to lead his communications strategy, often advises those close to him to have thick skin.

It is a lesson he learned years ago from Trump. The two were seated at the same table during a Lupus Foundation luncheon and a dispirited Scaramucci told Trump that he was being“ripped apart” by the media.

“Look, it comes with the territory. You are gaining a high profile, which means it’s time for people to start shooting at you,” Trump told him, according to Scaramucci’s 2016 book “Hopping Over the Rabbit Hole.”

“Big deal you were raked over the coals a little bit,” Trump continued. “So what? It has been happening to me for over 30 years.”

President Trump’s decision to bring Scaramucci into a top White House role represents a remarkable political ascension for the investment veteran, who had bounced around several Republican campaigns before striking gold as a full-throated Trump supporter.

Scaramucci, known as “the Mooch,” is in many ways cut from the same cloth as his new boss. Investors, associates and those who have worked with him say he is a brash New Yorker who is comfortable jousting with the media and a relentless promoter who doesn’t mind throwing sharp elbows.

Scaramucci said he would report directly to Trump as he takes charge of crafting the administration’s communications strategy and messaging. The new press secretary, Sarah Huckabee Sanders, will report to him.

Scaramucci is at least the third person offered the White House communications director job since Trump was elected last year. He arrives just as the White House prepares to shift its attention to two of Trump’s chief priorities, tax reform and economic growth.

During his first visit to the White House press room Friday, he displayed both his effusive affection for Trump, whom he said he “loved” several times, and his nearly 30 years of Wall Street experience as he bandied about financial jargon like “arbitrage” and “opportunity cost.”

Trump has long admired Scaramucci’s unabashed willingness to stick up for the president during hostile interviews on cable news. He has an upbeat enthusiasm that White House officials believe has been missing from their current communications strategy, several administration officials said.

His stature in the White House grew after CNN was forced to retract a story alleging that the Senate Intelligence Committee was examining a Russian investment fund whose chief executive met with Scaramucci prior to the inauguration. The moment was seen as a big victory for Trump and his allies, who have complained for months about negative media coverage. Scaramucci accepted CNN’s apology.

Scaramucci didn’t initially jump onto the Trump campaign and joins other top administration officials, including National Economic Council Director Gary Cohn and Treasury Secretary Steven Mnuchin, with a history of financial support for Democrats. He’s also occasionally supported liberal causes. He gave thousands of dollars to then-presidential candidate Barack Obama in 2008. And in a 2012 Twitter post, Scaramucci appeared to call for gun control measures, writing “We (the USA) has 5% of the world’s population but 50% of the world’s guns. Enough is enough. It is just common sense it apply more controls.”

In 2015, he worked on Scott Walker’s presidential campaign, serving as national finance chairman, and then he switched to the Jeb Bush campaign when Walker withdrew. Before he joined Trump’s campaign, he said during a 2015 Fox Business appearance that Trump was “another hack politician.” Trump would “probably going to make Elizabeth Warren his vice presidential nominee,” he said, referring to the outspoken Democratic senator from Massachusetts.

During the press briefing Friday, Scaramucci apologized for calling Trump a “hack” and said the president still reminds him of the incident.

Scaramucci, like Trump, has deep New York roots. He started his career at Goldman Sachs being hired, fired, and rehired in a single year before leaving to start his own investment company. In 2005, he started SkyBridge Capital, which takes money from wealthy investors and parcels it out to hedge funds.

On Wall Street, he is known both for relentless salesmanship of both himself and his causes. Some employees recall that he could be abrasive in the office and that he was obsessed with Superman, filling his office with tchotchkes and an expensive painting of the superhero.

In January, Scaramucci announced he would sell his stake in SkyBridge Capital in anticipation of landing a job in the White House. It is unclear whether the sale to Chinese billionaire Chen Feng’s HNA Group and RON Transatlantic EG has been completed.

When Scaramucci didn’t initially snag a White House job, he returned to his Wall Street roots, running an annual hedge fund conference in Las Vegas, called SALT.

The schmooze-fest in the desert, which Scaramucci started in 2009, has helped raise his profile in political and Wall Street circles. Bush and former vice president Joe Biden appeared this year along with hedge fund giants Daniel S. Loeb and Bill Ackman, both of whom Scaramucci has known for years.

[Passed over for White House job, Trump supporter finds his way back among Wall Street elite.]

He also has deep media connections. He hosted “Wall Street Week” and has served as a contributor to Fox News Channel. It was Scaramucci, in 2010, who asked President Obama during a CNBC town hall when the White House would stop treating bankers like “a piñata.” He even has Hollywood connections, serving as an adviser to Oliver Stone for the 2010 film “Wall Street: Money Never Sleeps.”

“I was giving him hell for backing Marco Rubio,” Stone said in an interview earlier this year. “He called me his liberal.” (Stone supported Bernie Sanders and ended up voting for Jill Stein.) Asked whether Scaramucci landing a White House job gave him hope for Trump administration, Stone said: “I am hoping, if he has advisers around him that are reasonable” Trump could be successful.

Despite his media savvy, Scaramucci has occasionally found himself in a harsh spotlight, such as the time last year when he compared an Obama-era rule requiring financial advisers to act in the best interest of their clients to the 1857 Supreme Court ruling which held African Americans were not U.S. citizens.

At the same time, Scaramucci has shown an openness to bringing more bipartisanship into the Trump administration as well, something that separates him from others who have deeper ties with the GOP.

At Mitt Romney’s annual Deer Valley retreat this June, Scaramucci attended and offered his ideas for how he would remake the White House’s communications team, according to someone who was there who spoke on the condition of anonymity to describe the private meeting.

Scaramucci said the White House’s message has been muddled. He suggested that if he was there he would start a daily “TV” show of sorts each morning, with a desk on the White House lawn. Each day they would broadcast their own news report on the things they wanted to promote, having guests appear and even inviting Democrats to join and discuss the day’s agenda.

“Part of being a spokesman is selling. Communicating very clearly what the message is. Being likable. I think he will do a great job,” said Don Steinbrugge, founder and chief executive of Agecroft Partners, a hedge fund consulting firm. “He competed very successfully in one of the most competitive marketplaces there is. He grew his business, Skybridge, during a period where there was significant contraction in the fund of fund business. He was able to do it because of the skills he has.”

Paletta and Long reported from Washington. Staff writer Ashley Parker contributed to this report.

An earlier version of this story mischaracterized a since-retracted CNN story saying the Senate Intelligence Committee was investigating “whether” Scaramucci had met with a top executive from a Russian investment fund. The retracted story never questioned the existence of the meeting. The story has been updated.