2016-12-09 57 views
-1

我更改了我的sshd_config文件,將strictmodes設置爲no,然後重新啓動sshd服務。 但是,我得到了兩個不同的輸出,如下所示。b/w sshd_config和sshd命令有什麼區別?


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

回答

0

最的配置文件有#爲註釋,因此沒有使用它後面的選項,因此您的服務器使用其默認值,這是yes。將您的sshd_config中的行更改爲

StrictModes no 

並重新啓動服務。它將被應用。

相關問題