Ubuntu Plesk SSH 问题(permitRootLogin)

Ubuntu Plesk SSH 问题(permitRootLogin)

我获得了一台新的 Ubuntu 14.04 服务器,该服务器已交付并运行无限制的 Plesk。如果我尝试通过 Plesk 的迁移管理器迁移旧服务器,它会报告以下问题:

rsync execution error: Unknown error (255).
Stderr is:
--------------------------------
/etc/ssh/ssh_config: line 55: Bad configuration option: permitrootlogin
/etc/ssh/ssh_config: terminating, 1 bad configuration options
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at io.c(226) [Receiver=3.1.0]

--------------------------------

/etc/ssh/ssh_config(目标服务器上的第 55 行):

PermitRootLogin yes

/etc/ssh/sshd_config(也在目标服务器上):

#PermitRootLogin without-password
PermitRootLogin yes

两个 Plesk 是相同的(12.0.18),原始服务器是 Ubuntu 12.04LTS,目标服务器是 Ubuntu 14.04LTS。

答案1

总结该行PermitRootLogin yes不属于该ssh_config文件,只属于该sshd_config文件。

该文件描述了客户端的配置选项。正如错误日志所述,客户端ssh_config没有这样的选项。但是,该文件描述了守护进程的选项。(您可以识别这一点,因为 sshPermitRootLoginsshd_configd)服务器/守护进程确实有一个PermitRootLogin选项,所以它属于那里。

相关内容