


ps -ef | grep sshd

sshd -t
/var/empty/sshd/ permission issue.

/var/log/secure logs to facilitate troubleshooting.

/var/empty/sshd directory.ll -d /var/empty/sshd/
777.

/var/empty/sshd/ file.chmod 711 /var/empty/sshd/

/etc/fstab is not properly configured.
For example, you've configured the auto-attaching of disk based on device name in the /etc/fstab file. If the device name is changed when the CVM restarts, this configuration will cause the system to fail to start up normally./etc/fstab configuration file. Then, restart the CVM to verify the repaired file.
fstab file is correct.lsblk

fstab file.cp /etc/fstab /home
/etc/fstab file.vi /etc/fstab
# to comment out this configuration.

FAILED startup failure items in the prompt message.

.bin and .lib files are missing.



root account and the password set in step 3 to log in to the instance as follows:vda, and its root partition is vda1, which is unmounted by default.mkdir -p /mnt/vm1
mount /dev/vda1 /mnt/vm1

mount -o bind command to mount some sub-directories in the original file system and use the chroot command to run commands in the specified root directory. Below are the specific commands:mount -o bind /dev /mnt/vm1/devmount -o bind /dev/pts /mnt/vm1/dev/ptsmount -o bind /proc /mnt/vm1/procmount -o bind /run /mnt/vm1/runmount -o bind /sys /mnt/vm1/syschroot /mnt/vm1 /bin/bash
chroot command:cd / command.cd /mnt/vm1 to view the root partition data.

/usr/bin directory in the original system root partition have been deleted.

/usr/bin directory of the normal system to the abnormal instance.cd /usr/bin/ && tar -zcvf bin.tar.gz *
scp bin.tar.gz root@abnormal instance ip:/mnt/vm1/usr/bin/

cd /mnt/vm1/usr/bin/
tar -zxvf bin.tar.gz
chroot /mnt/vm1 /bin/bash



Feedback