Is production: true
#linode #rescue

Title: Linode Rescue Mode

Created: 19 Jun 2024 Modified: 19 Jun 2024

Description: How to use rescue mode in linode



[Official Doc]

Enable SSH

  1. Get into the Linode Dashboard
  2. Find you machine to be rescue
    mode
  3. Launch LISH Console mode
  4. change a temporary password by passwd (A very temporary password for only short period of access to the rescue mode server)
  5. start the ssh service service ssh start
    mode
  6. now you can access to the server through ssh locally
    mode

Mount the disk

mode

  1. Normally the main dirver will be /dev/sda (but you could check the driver by using command lsblk)
  2. Create a folder under /media by command
    mkdir /media/sda
    
  3. Mount the drive by command
    mount -o barrier=0 /dev/sda /media/sda
    

Modify SSH authorized_keys

In case you are losing you ssh key, you can modify /media/sda/root/.ssh/authorized_keys to add you new ssh public key. You may use the command to install vim for update the file.

apt update -y && apt isntall vim -y

After that, you could restart the Reboot the server on the Linode console page. Now you are able to use the new SSH Key to access to the server.