a so-far impregnable fortress , it perched on sheer cliffs above the river , commanding 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 .