Generate new password

Generate your new password with jbcrypt, or go to some bcrypt hash generator site, like this one. Let’s say I want to set my new password to test123. Generated output is $2a$06$asD3yrR8itMn6.5eS.QSS.AIeOkFLk9DBrp8kP3PvmNCIXK1.miYW.

Modify config.xml

sudo su
nano /var/lib/jenkins/users/<your_jenkins_username>/config.xml

Replace passwordHash entry

<passwordHash>#jbcrypt:$2a$06$asD3yrR8itMn6.5eS.QSS.AIeOkFLk9DBrp8kP3PvmNCIXK1.miYW</passwordHash>

This will replace your current password with _test123_. Save file and reload jenkins.
– Now you can login to <your_jenkins_username> with password _test123_
– Go to _http://localhost:8080/<your_jenkins_username/>/configure_, and change password
Now you should be able to login to Jenkins with your new password.


Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x