我将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
大多数配置文件带有#
注释,因此未使用其后面的选项,因此您的服务器使用其默认值yes
。将您的行更改sshd_config
为
StrictModes no
并重新启动服务。它将被应用。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句