Now I understand your question
There are two methods:
- username hussein password cisco123
If you do it like this, then it will be saved in the configuration in clear text.
- username hussein secret cisco123
If you use “secret” then it will create a MD5 hash of your password.
You can’t have a “password” and “secret” at the same time for one user account so you are getting this error because you probably already configured a secret for your username. Remove it first and then you can set a password.
It’s also possible to encrypt all plaintext passwords in the configuration with the “service password-encryption” command. However, this is a very poor encryption type: