我改变了我的 sshd_config sshd 服务 然而,我得到两个不同的输出,如下所示。
sshd_config
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 到
#
yes
StrictModes no
并重新启动服务。它将被应用。