linux - redhat中的sftp配置

标签 linux sftp 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]

我的操作系统

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

最佳答案

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

关于linux - redhat中的sftp配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42925088/

相关文章:

python - 在 heroku 中启动应用程序?什么是程序文件? 'web:' 命令?

linux - 如何从特定时间开始无限地每 1 小时执行一次 cron 作业?

c++ - C/C++ - 运行系统 ("process &"),然后写入其标准输入

java - Quarkus 应用程序属性作为 kubernetes/openshift 配置映射,用于 native 镜像部署

检查软件包是否安装的 Pythonic 方法

linux - 使用 Linux 系统凭据登录 Flask

java - 使用 JSch 时重命名命令不起作用

linux - sftp 上传 bash 忽略文件

python - pyftp put 将文件截断为 4096 位

linux - epoll_ctl() 失败 : No such file or directory [errno = 2]