1. Home
  2. DIY VPS
  3. How do I reset the password on a server in the Do-it-yourself service?

How do I reset the password on a server in the Do-it-yourself service?

Den här artikeln finns även på svSvenska

We always recommend setting up and using SSH keys on servers instead of using, or relying on, password-based access. If you’re still using password-based access, this guide may help you regain access of the server.

If you for example have set a new password using the passwd command via SSH on a server in the DIY service, you will no longer be able to see the correct password via the control panel. Thusly, if you would lose the new password you might get locked out from the server.

$ ssh root@185.20.12.141
root@185.20.12.141's password:
Permission denied, please try again.
root@185.20.12.141's password:
Permission denied, please try again.
root@185.20.12.141's password:
Permission denied, please try again.
root@185.20.12.141's password:

If this should happen, you can always set a new admin password via the control panel, and this guide will show you how.

  1. Begin by logging on to the DIY control panel.
  2. After logging in, click Virtual Servers under Appliances in the menu to the left.
    Klicka på Virtual Servers i menyn
  3. Click on the name of the server you wish to set a new admin password for (under Label).
    Välj rätt server
  4. After accessing the settings page for the server, click the green Tools button towards the top right.
    Klicka på Tools-knappen
  5. In the popup menu, click Reset Root Password.
    Klicka på Reset Root Password
  6. You’ll now get to make some choices for the new password.
    Gör val för det nya lösenordet
    Set password: Here you select if you want a randomised password or set one yourself.

    If you want to set your own password, two new fields appear:

    Password: Enter your preferred password here.

    Password confirmation: Enter the password once more for confirmation.

    Encrypt password: You can opt in to encrypt your password, which otherwise will be readable via the control panel. If you enable this, you must enter a passphrase to see the password.

    If you select password encryption, you get two additional fields:

    Encryption passphrase: Here you enter the passphrase for unlocking the admin password display. If you forget this passphrase you will be unable to see the password for your server.

    Encryption passphrase confirmation: Enter the same passphrase as above again.
  7. When you’re done, click the blue button. The text on the button will vary based on your selections but will be labelled with one of the variants below.
    Knappar för att bekräfta nytt lösenord
    When you click the button, the server will reboot and once it’s done you should be able to access the server with the new password.

Was this article helpful?

Related Articles