Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The administrator username and password is stored on your server in the following configuration file: /wgdashboard/src/wg-dashboard.ini
If you have forgotten your username and/or password, you can remove the corresponding values from this file and reboot the server in order to have them reset to the default values - "admin"You can reset the credentials to the default admin/admin by following these steps:

  1. Connect to your server via SSH

  2. Install Midnight Commander for convenient navigation and file editingExecute the following command (you can paste it into your SSH client):

    Code Block
    languagebash
    themeMidnight
    apt-get install mc

    After MC has been installed, run the following command to access the configuration file:

    Code Block
    languagebash
    themeMidnight
    mceditsed -i '2 c\username = admin' /wgdashboard/src/wg-dashboard.ini && sed -i '3 c\password = 8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918' /wgdashboard/src/wg-dashboard.ini && systemctl restart wg-dash
    


  3. Wait for WGDashboard to reset (it should take under a minute).

  4. Head over to your WGDashboard page, and use "admin" for both the uername and password.

  5. Once logged in, change your username and password, as per the Wireguard template

    Remove the values from "uername" and/or "password" lines after the "=" sign (mind the spaces)
    Save the file by pressing F2

    Reboot the server with the reboot command

    Code Block
    languagebash
    themeMidnight
    reboot
    Wait for the server to reboot (can take a couple of minutes), and open your WGdashbopard page
    Enter "admin" on the login fields that correspond to the values that you removed (username and/or password)
    Once you have successfully logged in, change the username and/or password, in order to keep your server safe, as per the

    instructions.

CSS Stylesheet
.home-banner {
                    background: #459df0;
                    color: #fff;
                    font-size: 20px;
                    padding: 20px;
                    }
                    .home-banner h2 {
                    color: #fff;
                    }
                    .title-box {
                    border: 1px none #459df0;
                    padding: 10px;
                    }
                    .title-box > h2 {
                    background: #459df0;
                    bottom: 10px;
                    color: #fff;
                    margin-left: -10px;
                    margin-right: -10px;
                    padding: 2px 10px;
                    position: relative;
                    }

...