...
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.
Hold down the shift key during the boot of the VM to get into the GRUB console.
Select “Advanced options for Ubuntu”.
Select the latest kernel with recovery mode.
Select “root - Drop to root shell prompt”.
Normally here there would be a prompt for the root user password. If none is set (default) then just press ENTER key.
Remount the
/
partition with write rights using this command:# mount -rw -o remount /
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
Exit the command prompt either by using Ctrl+d keys or exit.
Now reboot the machine either by resuming the recovery mode and using the reboot command there or by force.