【问题标题】:What is the difference b/w sshd_config and sshd command?b/w sshd_config 和 sshd 命令有什么区别?
【发布时间】:2017-04-24 22:02:06
【问题描述】:

我更改了我的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

【问题讨论】:

    标签: unix redhat sshd


    【解决方案1】:

    大多数配置文件都有# 作为注释,因此不使用它后面的选项,因此您的服务器使用其默认值,即yes。将sshd_config 中的行更改为

    StrictModes no
    

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多