2016-12-09 12 views
-1

sshd_configファイルを変更してstrictmodesをnoに設定し、sshdサービスを再開しました。 しかし、私は以下のように2つの異なる出力を得ています。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 

に変更し、サービスを再開してください。適用されます。

関連する問題