Description

This article explains how to recover the  admin  Linux password for a Juniper Apstra Server VM after losing the admin  password and being unable to log in to the Juniper Apstra Server VM Linux CLI.

Solution

WARNING: This requires console access to the Juniper Apstra Server VM. This requires rebooting the Juniper Apstra  Server VM. Any deployed Juniper Apstra Fabric will not be impacted.

  1. Attach to the Juniper Apstra Server VM console and send a “reset” signal to the VM. Press the  esc  or shift  key in the console immediately on reboot to access the GRUB menu.

alt

  1. Select Advanced options for Ubuntu .

(for Juniper Apstra 2.3 and later only)  For  username, enter  admin  and for  password , enter  apstra .

alt

  1. At the next GRUB menu, select the first  (recovery mode) option.

alt

  1. From the Recovery Menu , select root , and then press Enter to enter a root shell prompt.

alt

  1. At the root shell prompt, enter mount-o rw,remount / , and then passwd admin  to reset the password for the default  admin  user for the Juniper Apstra Server VM Linux CLI.

  2. Enter sync , and then reboot to reboot the VM.

alt

  1. After reboot, log in to the Juniper Apstra Server VM Linux CLI as user admin with the new password.

  2. Enter sync , and then reboot to reboot the VM.