文档

出错提示“Possible problems with remote login using root account”

更新时间:

本文主要介绍在Linux操作系统迁移时,迁移任务出错提示“Possible problems with remote login using root account”信息时的问题描述、问题原因及其解决方案。

问题描述

在SMC操作系统迁移到AnolisOS时,迁移任务出错提示“Possible problems with remote login using root account”信息。

问题原因

待迁移的源服务器系统/etc/ssh/sshd_config中的PermitRootLogin未设置为yes

解决方案

  1. 远程连接源服务器。具体操作,请参见连接实例

  2. 执行以下命令,把/etc/ssh/sshd_config中的PermitRootLogin值设置为yes

    sudo sed -i 's/^PermitRootLogin no$/PermitRootLogin yes/' /etc/ssh/sshd_config
  3. 执行以下命令,检查PermitRootLogin的值是否设置为yes

    grep ^PermitRootLogin /etc/ssh/sshd_config
  4. 执行以下命令,重启SSH服务以使更改生效。

    sudo systemctl restart sshd
  5. 问题排查解决后,运行SMC客户端再试。具体操作,请参见运行SMC客户端

  • 本页导读 (1)
文档反馈