全部產品
Search
文件中心

Server Migration Center:出錯提示“Possible problems with remote login using root account”

更新時間:Jul 13, 2024

本文主要介紹在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用戶端