I have a problem accessing a PIX 515E from either SSH or Telnet. The password has been lost but the strange thing is that I can still perform any config changes I need to from within the ASDM. Last week I needed to add a command which I cannot find in the ASDM so I went to SSH and it refused my enable password. According to the ASDM, this should be the same as the one I use to connect to the ASDM but it is not working nor allowing me to change. The PIX is at v7.2(2).
So you established an SSH session successfully, but when you typed enable then typed in your enable password, it refused correct?
"The password has been lost but the strange thing is that I can still perform any config changes "
When we add the symptom in quotations to my very first question, then most probably you are using a username and a password for logging into ASDM.
So what you have to do is, once you establish SSH, type login instead enable. As you type login, it will ask for username and password. Type in the username password that you type for ASDM, then you will be in priv mode.
Then you can also change your enable password.