/etc/ssh/sshd_config: line 11: Bad configuration option: Include
时间: 2024-01-18 13:05:13 浏览: 126
Linux sshd_config配置手册中文版
This error message indicates that there is an incorrect configuration option in the /etc/ssh/sshd_config file on line 11. The option "Include" is not recognized as a valid configuration option in the sshd_config file.
To resolve this issue, you can either remove the "Include" option from line 11 or make sure that it is followed by a valid configuration file path.
For example, if you intended to include another configuration file, you can use the following syntax:
Include /etc/ssh/sshd_config.d/*.conf
This will include all the configuration files with .conf extension in the /etc/ssh/sshd_config.d/ directory.
After making the necessary changes to the sshd_config file, save it and restart the SSH service to apply the changes:
sudo systemctl restart sshd
阅读全文