b/w sshd_config 和 sshd 命令有什么区别?
What is the difference b/w sshd_config and sshd command?
我更改了 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
并重新启动服务。它将被应用。
我更改了 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
并重新启动服务。它将被应用。