So , if you are not able to recognise your user name or password , follow these steps:
Stop your jenkins server ,if it is running , using command: sudo systemctl stop jenkins
Goto /var/lib/jenkins
Open config.xml file with root-edit access.
Change the tag from "<useSecurity>true</useSecurity>" to "<useSecurity>false</useSecurity>"
Save it.
Then run command: Sudo systemctl start jenkins
open the jenkins on your browser: http://localhost:8080/
Goto: Dashboard > Manage Jenkins > Security
Then select:
"Jenkins own user database" under security realm.
Select checkbox : Allow users to sign up
"Loggedin user can do anything" under Authorization.
And save it.
You will be redirected to the login page > select Signup (Create new account)
And login with the new account.
Goto: Dashboard > Manage Jenkins > Users > Click on the gear icon of the account , whose password you forgot.
Change the password and save the changes.
Login with the Old account , also you can delete the new created account.
Note: Dont forget to change the disble "Allow users to sign up" inside Security options.