Defence Minister Yoav Gallant told Israel's "enemies and friends" on Wednesday that it would do whatever necessary achieve its war aims in Gaza and the north, in an apparent response to U.S. pressure to halt its operation in Rafah.

The comments, at a ceremony to commemorate Israel's war dead, followed U.S. President Joe Biden's warning that the United States would halt weapons supplies if Israel moved into Rafah, the southern Gaza city where more than a million displaced Palestinians are sheltering.

"I turn to Israel's enemies as well as to our best of friends and say - the State of Israel cannot be subdued," he said, according to remarks released by his office. "We will stand strong, we will achieve our goals - we will hit Hamas, we will hit Hezbollah, and we will achieve security."

The comments, from one of the war cabinet ministers considered to be most sensitive to the risk of alienating the United States, underlined the scale of the standoff between the Biden administration and the Israeli government.

"We have no choice, we have no other country. We will do whatever is necessary, and I repeat - whatever is necessary, in order to defend the citizens of Israel, to remove the evil threats against us, and to stand up to those who attempt to destroy us," he said.

Israeli tanks seized control of the Palestinian side of the Rafah border crossing with Egypt earlier this week and are currently probing the outskirts of the nearby city of Rafah.

Prime Minister Benjamin Netanyahu has defied mounting international pressure to agree to a ceasefire but has not so far ordered troops to enter the city, where Israel says four battalions of Hamas fighters are based.

In the north, Israeli forces have been engaged in exchanges of fire across the Lebanon border with forces of the Iranian-backed Hezbollah militia ever since the start of the war in Gaza last October.

(Reporting by James Mackenzie; editing by Philippa Fletcher)