黑白sshd_config和sshd命令有什么区别?

沙玛·曼尼什

我将sshd_config文件更改为将strictmodes设置为no,然后重新启动了sshd服务。但是,我得到两个不同的输出,如下所示。


root@localhost httpd]# service sshd stop
Stopping sshd:                                             [  OK  ]
[root@localhost httpd]# service sshd start
Starting sshd:                                             [  OK  ]
[root@localhost httpd]# sudo cat /etc/ssh/sshd_config | grep StrictModes
#StrictModes no
[root@localhost httpd]# sshd -T | grep strictmodes
strictmodes yes
ky

大多数配置文件带有#注释,因此未使用其后面的选项,因此您的服务器使用其默认值yes将您的行更改sshd_config

StrictModes no

并重新启动服务。它将被应用。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章