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
Connect to the source server. For more information, see Connect to an instance.
Run the following command to set the
PermitRootLoginparameter in the/etc/ssh/sshd_configfile toyes:sudo sed -i 's/^PermitRootLogin no$/PermitRootLogin yes/' /etc/ssh/sshd_configRun the following command to check whether the
PermitRootLoginparameter is set toyes:grep ^PermitRootLogin /etc/ssh/sshd_configRun the following command to restart the SSH service for the modification to take effect:
sudo systemctl restart sshdAfter the error is resolved, run the SMC client and retry the migration job. For more information, see Run the SMC client.