Reset password of Jenkins
Prefer way, No securities were harmed
ssh to the server, disable authentication, set the password via the Jenkins Web UI, then enable authentication.
In configuration file of jenkins, for example: /var/lib/jenkins/config.xml
<to: >true</ >
Comment out the authorizationStrategy block
restart jenkins, such as:
# service jenkins restart
After changing the password from web UI, you need to change back the configuration and restart jenkins service.