服务器 2018-02-15 11:17:13

Directive 'UseDNS' is not allowed within a Match block.

centos7 sftp设置后 ssh 启动失败

报错日志:Directive 'UseDNS' is not allowed within a Match block.

图片描述

解决方法:

设置/etc/ssh/sshd_config
将subsystem匹配模块放在文件最底部

图片描述

参考https://unix.stackexchange.com/questions/67334/openssh-how-to-end-a-match-block