I would like to configure an interface on a remote Cisco router (ISR 4000 series) with IPsec. The only way to connect to it is through the interface that I am trying to encrypt.
I want to ensure that I would not lose connection due to misconfiguration.
I would like to know if there is a way to make the router undo the last command(s) that caused the ssh session to drop.