I don’t like to make this process very lengthy and full of steps indicating to do many things. Its good to save the configuration of your router to an external FTP server from where you can restore the configuration in just few minutes and can save your precious time finding the things around.
First Login to the router using your SSH login (I assume that you have the root privileges on your router)
-
The prompt will show something like this ITOPERATIONZ# (Assume ITOPERATIONZ is the name of your router)
-
Configure the FTP username and password.
ITOPERATIONZ#config terminal ITOPERATIONZ(config)#ip ftp username cisco ITOPERATIONZ(config)#ip ftp password cisco123 ITOPERATIONZ(config)#end ITOPERATIONZ#
-
Copy the configuration to the FTP server.
ITOPERATIONZ#copy running-config ftp: Address or name of remote host []? ftp.itoperationz.com Destination filename [ITOPERATIONZ-confg]? backup_router Writing backup_router ! 1030 bytes copied in 3.341 secs (308 bytes/sec) ITOPERATIONZ#
-
Open the configuration file with a text editor. Search for and remove any line that starts with "AAA".
Note: This step is to remove any security commands that can lock you out of the router.