Ireland were fortunate in that a fiery Scotland side failed to translate many of its opportunities into points. Johnny Sexton's failure to convert was a small consolation for the major mishap, but Ireland soon stretched their lead. Sexton was well marked otherwise, though.
While Ireland kept the pressure on for the final 20 minutes, a fourth try and bonus point remained elusive - but this performance will definitely help put last week's memories behind them, and leave Ireland feeling confident about the World Cup repeat of the fixture.
Sexton's replacement, Joey Carbery, made an early mistake to hand Scotland back the initiative.
The New Zealand-born flyhalf - who moved to Munster a year ago after being an understudy to Sexton at Leinster - made a nervy start with his pass being intercepted leading to Scotland's try at the end of the first-half. Finn Russell gave a glimpse of his genius for reading the game when creating Sam Johnson's score, but that was a rare moment of inspiration.
Ireland finished the half strongly though, to ensure that they went to the break with the lead.
Merkel Announces EU Reached Agreement on Nord Stream 2
At the same time, France changed its position and made a decision to support the proposed amendments despite Germany's objections. It is believed that the amendments in question mainly target the Russian pipeline project Nord Stream 2.
"Ireland will be fully on the front foot come Saturday and Scotland can expect to be up against a very angry, committed Irish team". The hosts repelled wave after wave of Irish attack and eventually forced a turnover. The substitute's pass to Earls looked as if it could have been forward, but the winger touched down, Carbery added the conversion and Ireland were back in the driving seat.
Greig Laidlaw kicked a penalty in the 62nd minute to bring his side back within striking distance.
Ireland will remain in the Six Nations title race.
Instead, they went to the corner and this time it was Scotland's turn for a big defensive set as they repelled the men in green through 12 phases before Murray threw a pass to nobody and Earls was penalised for holding on on the deck under pressure.
Conor Murray, Stockdale and Earls all crossed for Ireland, with Carbery shrugging off an intercept pass that led to Sam Johnson's try to set up his Munster team-mate Earls for the victor. Conversions: Johnny Sexton, Joey Carbery.
Connacht lock Quinn Roux should start in Edinburgh, with the dependable Devin Toner ruled out with an ankle injury.