. Login to SSH with root user -
#passwd admin
2. This will ask you new password provide new password.
3. Now, directadmin password has been reset and I am able to login to directadmin panel with new password.
Steps to retrieve directadmin password
1. Login to server via SSH.
2. There is a file ‘/usr/local/directadmin/scripts/setup.txt‘ which containing the control panels details.
3. Execute the following command to get adminpass -
# cat /usr/local/directadmin/scripts/setup.txt | grep adminpass
That's it!