redhat中的sftp配置

sftp configuration in redhat

我正在 redhat 机器上创建 sftp 配置,但是在重新启动 ssh 服务时出现以下错误。

$ service sshd restart
Stopping sshd:                                             [  OK  ]
Starting sshd: /etc/ssh/sshd_config: line 130: Bad configuration option: Match
/etc/ssh/sshd_config: line 132: Bad configuration option: ForceCommand
/etc/ssh/sshd_config: terminating, 2 bad configuration options
                                                           [FAILED]

我的O.S.

$ cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 5.4 (Tikanga)

Red Hat Enterprise Linux 5 非常旧(10 年前发布)并且不支持这些配置选项(MatchForceCommand)。如果您想访问最新功能,您应该考虑更新到更新的内容。