Today, we will guide you on how to retrieve and reset the DirectAdmin password from the SSH.
Steps to retrieve DirectAdmin password
- Login to VPS or dedicated server with root user through SSH.
- Execute the following command to get the admin pass.
# cat /var/log/directadmin/install.log
OR
# cat /usr/local/directadmin/scripts/setup.txt | grep adminpass
Important: The above steps will be useful if you have just installed the DirectAdmin control panel on your server and you have closed the window without saving the login details in your local system. Once you change the password through the DirectAdmin control panel or ssh, you can't log in to it with the details mentioned in this file.
Steps to reset the direct admin password
- Login to your Linux VPS or dedicated with root user through SSH.
- Execute the following command in the terminal to reset the password of the admin user.
# passwd admin - It will ask you to enter a new password.
- Once it is successfully changed, you will get a message on the screen "all authentication tokens updated successfully". It means that the password is successfully updated. That's all.