At least 14 Yemeni government troops were killed Sunday in an attack by Iran-backed Houthi rebels in the port city of Hodeidah, two military officials confirmed.

An officer with pro-government forces in the Jabal Dubas in Hays district, where the clashes took place, confirmed 14 troops were killed and 23 injured in "fierce fighting".

The officer said the Houthis briefly took control of pro-government positions in the clashes, which began late on Friday, before a counterattack to retake them concluded at dawn on Saturday.

"This was the deadliest Houthi attack in years," the officer said on condition of anonymity because he was not authorised to speak to the media.

He described how the Iran-backed rebels had attacked with snipers, which accounted for most of the casualties, before launching drone and mortar salvos.