A question can only have one accepted answer. Are you sure you want to replace the current answer with this one?
You previously marked this answer as accepted. Are you sure you want to unaccept it?
Write for DigitalOcean
You get paid, we donate to tech non-profits.
Find and meet other developers in your city.
Contribute to Open Source
How to change RDP Password if I lost it accidentally?
Add comments here to get more clarity or context around a question. To answer a question, use the “Answer” field below.
You should be able to do that by running this command as your root user:
Change the your_rdp_user part accordingly and you would be prompted to enter your new password.
Where i run this code ?
I think you are telling about to change root password but I want to change rdp password.
Bobby is saying that you should run passwd rdp_user_account to change the password of the account you use to connect via RDP, replacing rdp_user_account with the username of the account you use to connect to the server with RDP.