Fix the PermitRootLogin error during SMC Linux migration by enabling root SSH login on the source server.
This error occurs when you use SMC to migrate a Linux OS to Anolis OS and root SSH login is disabled on the source server.
Problem description
SMC reports this error during a Linux OS migration to Anolis OS.
Cause
The PermitRootLogin parameter in /etc/ssh/sshd_config on the source server is not set to yes.
Solution
-
Connect to the source server. Connect to an instance.
-
Set
PermitRootLogintoyesin/etc/ssh/sshd_config:sudo sed -i 's/^PermitRootLogin no$/PermitRootLogin yes/' /etc/ssh/sshd_config -
Verify that
PermitRootLoginis set toyes:grep ^PermitRootLogin /etc/ssh/sshd_config -
Restart the SSH service to apply the change:
sudo systemctl restart sshd -
After you resolve the network issue, run the SMC client to retry the operation. For more information, see Run the SMC client.
该文章对您有帮助吗?