All Products
Search
Document Center

Server Migration Center:What do I do if the "Possible problems with remote login using root account" error message appears?

Last Updated:May 10, 2024

This topic describes the cause of the "Possible problems with remote login using root account" error message that is reported when you use Server Migration Center (SMC) to migrate a Linux operating system. This topic also describes how to resolve the error.

Problem description

The "Possible problems with remote login using root account" error message is reported when a Linux operating system is being migrated to Anolis OS by using SMC.

Cause

The PermitRootLogin parameter in the /etc/ssh/sshd_config configuration file of the source server to be migrated is not set to yes.

Solution

  1. Connect to the source server. For more information, see Connect to an instance.

  2. Run the following command to set the PermitRootLogin parameter in the /etc/ssh/sshd_config file to yes:

    sudo sed -i 's/^PermitRootLogin no$/PermitRootLogin yes/' /etc/ssh/sshd_config
  3. Run the following command to check whether the PermitRootLogin parameter is set to yes:

    grep ^PermitRootLogin /etc/ssh/sshd_config
  4. Run the following command to restart the SSH service for the modification to take effect:

    sudo systemctl restart sshd
  5. After the error is resolved, run the SMC client and retry the migration job. For more information, see Run the SMC client.