Australia held on for victory in the second T20I against Sri Lanka despite the tourists forcing a super over with a thrilling run chase.

Having won the opener – also in Sydney – by 20 runs, Sunday's match looked to be in Australia's control after they posted 164-6 after batting first.

Captain Aaron Finch (25) and 48 from Josh Inglis carried the hosts to 112-4 before late flurries from Marcus Stoinis (19) and Matthew Wade, who hit 13 off just four deliveries.

After Danushka Gunathilaka thumped a Josh Hazlewood ball straight to the waiting Ben McDermott, Inglis leapt to his left to catch a drive from Avishka Fernando in the third over, and Sri Lankan hopes looked forlorn indeed when Pat Cummins skittled Charith Asalanka for a duck.

Yet Pathum Nissanka maintained composure to build Sri Lanka's score. He smashed 73 off only 53 balls, including nine boundaries, while captain Dasun Shanaka added 34 from 19 deliveries before being run out by a brilliant Steve Smith throw.

It was Stoinis who eventually ended Nissanka's stand, his full toss swung towards deep square where Cummins claimed a fine catch, but Maheesh Theekshana promptly hit a six from the next ball despite Smith nearly concussing himself in a desperate attempt to save it.

In an extraordinary finish, Dushmantha Chameera then thumped another full toss from Stoinis straight down the ground for four to force the eliminator, for which Hazlewood was chosen for the Australia attack.

It proved a wise choice. Sri Lanka managed 5-1, with Dinesh Chandimal run out by Glenn Maxwell, allowing Stoinis to settle the contest with consecutive fours.

Unlucky Sri Lanka can take heart

Sri Lanka have now lost seven T20I matches in a row against Australia and have only one win from 15 in the format when playing outside Asia.

They are unlikely to get much closer to victory than this. Needing 46 off the final 18 balls, they managed 45, while fortune was against them when Chameera's final strike fell just short of a six after a wide had not been called on the penultimate delivery.

Hazlewood shines in super over

Nissanka kept Sri Lanka's hopes alive, but Hazlewood ended them clinically in the super over with some expert deliveries.

"I just kept a nice clear mind," said Hazlewood, who finished with figures of 3-22. "[I] had a chat with Finchy and came up with a plan of what I wanted to do. The confidence is high at the moment and [it is] nice to execute."