Versions Compared

Key

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

...

To Backup Yarnman Open SSH session Run command: cd /opt/yarnlab/yarnmanRun the backup script:  ./scripts/backup-yarnman.sh -b Backup script will create Backup Directory /opt/yarnlab/backup and create backup file Restoring BackupOpen SSH sessionEnsure that the backup directory /opt/yarnlab/backup exist with backup file Run command: cd /opt/yarnlab/yarnmanRun the restore script:  ./scripts/backup-yarnman.sh -rThe backup script will identify the latest backup in the backup directory and restore from there

...

SSH Password Recovery Process

The steps below describe the process of recovering and resetting the SSH password for a user.

This procedure assumes that password recovery is required for any user BUT root. 

  1. Hold down the shift key during the boot of the VM to get into the GRUB console.

    Image Removed
  2. Select “Advanced options for Ubuntu”.

    Image Removed
  3. Select the latest kernel with recovery mode.

    Image Removed
  4. Select “root - Drop to root shell prompt”.

    Image Removed
  5. Normally here there would be a prompt for the root user password. If none is set (default) then just press ENTER key.

    Image Removed
  6. Remount the / partition with write rights using this command: # mount -rw -o remount /

    Image Removed
  7. Use the passwd command to change the password of any user.     Note: It may state that it is a Bad Password but it will accept any password

    Image Removed
  8. Exit the command prompt either by using Ctrl+d keys or exit.

  9. Now reboot the machine either by resuming the recovery mode and using the reboot command there or by force.