我有Ubuntu服务器18.04.04LTS与OpenSSH_7.6p1 Ubuntu-4 ubuntu0.3,OpenSSL 1.0.2n 2017年12月7日。
我想将一个新创建的文件newFile包含到\etc\ssh\sshd_config中,我在它的顶部添加了一行Include newFile,但是当我重新启动SSH服务时,它会抛出:
Job for ssh.service failed because the control process exited with error code.
See "systemctl status ssh.service" and "journalctl -xe" for details.发布于 2020-07-01 16:04:58
sshd不支持将其配置拆分为多个文件
包含语句已在8.2中添加
https://github.com/openssh/openssh-portable/commit/c2bd7f74b0e0f3a3ee9d19ac549e6ba89013abaf
https://man.openbsd.org/sshd_配置
但是对于匹配指令,它目前还不能很好地工作,应该在8.4中修正
https://askubuntu.com/questions/1255150
复制相似问题