the so-far impregnable fortress , perched on sheer cliffs above the river , commanded both the river and the plains to the west with her cannon , obliging english warships to steal past under cover of night-and not always successfully .