US President Donald Trump has won Australian support for his goal of returning astronauts to the moon by 2024 in a deal to be struck with Prime Minister Scott Morrison within days.

Mr Morrison will visit the National Aeronautics and Space Administration on Sunday to support a memorandum of understanding the vast US organisation will sign with the Australian Space Agency.

The US has a target to return to the moon by 2024. Credit:NASA

The agreement will transfer Australian science and technology to Mr Trump's controversial plan for astronauts to return to the moon, just as it faces doubts over his ambitious deadline.

White House officials said the goal of the agreement was to return to the moon by 2024 and revive the cooperation seen decades ago when scientists at Australian tracking stations helped the Apollo lunar missions.