How to reset the CapRover password

Procédure

You can reset the CapRover password directly from the command line by connecting to your VPS server via SSH. CapRover is an open-source application deployment platform that makes managing Docker containers easier without complex handling. By running an official Docker command, you redefine administrator access without losing your applications or your configuration.

The steps

  1. Access the VPS server management

    In your LWS customer account, go to the Servers tab in the list of your services. Locate your VPS deployed with the CapRover model, then click the corresponding Manage button.

    How to reset the CapRover password
  2. Note the server's public IP address

    On the management dashboard of your virtual machine, locate the Server IPs block. Copy the address displayed next to the IPV4 label (for example 203.0.113.10) by clicking the copy icon, and check that the power status is active with the green indicator.

    How to reset the CapRover password
  3. Check the CapRover login screen

    Open your web browser and go to your server address followed by port 3000, in the form http://203.0.113.10:3000 (replacing it with the actual IP address of your VPS). If your usual or default credentials no longer work in the input field, leave the page open.

    How to reset the CapRover password
  4. Connect to the server via SSH

    Open your computer's terminal to establish the connection with your VPS. If you have already reinstalled your machine before, clear the old key fingerprint with the command ssh-keygen -R 203.0.113.10, then connect with ssh root@203.0.113.10 replacing this value with your server's IP.

  5. Check that the CapRover container is working

    Once connected from the command line, enter docker ps to list the active containers. Make sure the main container named captain-captain appears in the list with an active status.

  6. Run the password reset

    Launch the official reset command: docker exec -it $(docker ps -aqf "name=captain-captain") node dist/server.js --resetPassword. This command resets the administrative access of the CapRover instance.

  7. Confirm the container restart

    Run the docker ps command again in your terminal to make sure the CapRover container has restarted correctly and is working normally.

  8. Log back in to the CapRover dashboard

    Return to your web browser at http://203.0.113.10:3000 (or to the custom address https://captain.caprover.learnlws.fr if you had already configured your root domain). Log in with your new credentials to regain full access to the Dashboard and to manage your applications.

    How to reset the CapRover password

Frequently asked questions

What is the default CapRover password after installation?

During the initial deployment of CapRover via the template, the default administrator password configured by the solution is captain42. It is essential to change it as soon as you log in for the first time.

Why is the page http://:3000 not responding?

Check that your VPS is powered on in the LWS KVM panel and make sure that port 3000 is not blocked by an intermediate firewall. The main Docker container must also be started.

What should I do if SSH connection shows me “Host key verification failed”?

This warning usually occurs after a server reinstallation because the security fingerprint has changed. Simply run ssh-keygen -R on your computer to delete the old entry from your known_hosts file.

What is the difference between the IP:3000 address and the captain.domain URL?

Access via port 3000 corresponds to direct mode without an SSL certificate. Once your root domain name is configured in CapRover, the panel becomes securely accessible over HTTPS via the captain subdomain (for example https://captain.caprover.learnlws.fr).

Does resetting the password delete my containers and data?

No. The procedure only changes access to the CapRover administrator account. Your hosted applications, databases, and Docker volumes remain intact.

Useful links

help.lws.net/a/7948
Was this article helpful?

Yes

No

Read 1 times

Thank you! Feel free to ask questions about our documentation if you would like more information, and help us improve it.

Similar articles

A question about this article?

Ask the LWS team and the community. Answers are published after moderation.

Ask the LWS team and its community a question

GDPR: Controller: LWS-Ligne Web Services. Purpose: moderation and public publication of your question, possible notification of an answer. Legal basis: consent (Art. 6(1)(a) GDPR). Email retention: 90 days after notification, 12 months maximum without an answer. To exercise your rights, see the GDPR section of our Terms and Conditions.