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