“And he showed them the entrance into the city.” This would be a concealed small entrance into the city. The man did not show them the main city gate.
“the mouth of the sword.” Used to show great destruction, as if the sword was eating its victims (see commentary on Josh. 6:21).