代码之家  ›  专栏  ›  技术社区  ›  Sharma Manish

b/w sshd_config和sshd命令的区别是什么?

  •  -1
  • Sharma Manish  · 技术社区  · 9 年前

    我改变了我的 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
    
    1 回复  |  直到 9 年前
        1
  •  0
  •   Jakuje    9 年前

    大多数配置文件都有 # yes .在你的 sshd_config

    StrictModes no
    

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