服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. SFTP ssh
  3. openssh-server:ChrootDirectory不允许在一个Match块中
Intereting Posts
是否有可能在单个Hyper-V虚拟机中充分利用主机的所有function? 在GlusterFS集群中运行Docker 服务器在nginxconfiguration中的顺序是否重要? 在Exchange 2003中的批量转发电子邮件 黑客绕过iptables docker-composeconfiguration中构build上下文的相对path相对于compose yml文件位置没有parsing 分区,驱动器和卷以及SYSTEM_DRV 相同数量的客户端 – 多个WAP与单个WAP Rotary.org DNSparsing – 服务器故障 mod_auth_form和跨域authentication 托pipe数据中心与云数据中心 我正在Cassandra集群上移动节点,并在日志中看到“背压禁用!” / bin / rm -rf /backups/hourly.5/如何在备份服务器上永久使用? Exchange 2013隐藏转发规则 从Exchange Server 2007过渡到2010

openssh-server:ChrootDirectory不允许在一个Match块中

我的sshd_config如下所示:

Match User c_upload ChrootDirectoy /var/www/upload ForceCommand internal-sftp 

etc/init.d/ssh restart失败,并显示以下消息:

 /etc/ssh/sshd_config: line 90: Bad configuration option: ChrootDirectoy /etc/ssh/sshd_config line 90: Directive 'ChrootDirectoy' is not allowed within a Match block 

我的openssh服务器版本(根据dpkg AND ssh -v)是5.5p1。 根据手册,我应该可以使用ChrootDirectory选项。

  • 允许SFTP和进程运行,但不允许单个用户使用ssh
  • SFTP:closures选美强制密码,而不是公钥
  • SSH问题 – 服务器意外closuresnetworking连接
  • 在/ etc / ssh / sshd_config中更改后无法访问SFTP
  • SFTP限制用户只有几个目录

  • sftplogin问题与chroot
  • proftpd:mod_sftp连接超时
  • 从梦想计算机vps访问文件
  • 允许Web服务器用户取消链接SFTP上传的文件
  • 负载均衡的SFTP服务器

你不能看到你错过了Directory的r

 ChrootDirectory /var/www/upload 

应该做的伎俩。

  • 给没有/ home的用户提供私钥所有权
  • 通过HAProxy负载平衡的SFTPconfiguration
  • SFTP密钥的问题? java.security.InvalidAlgorithmParameterException
  • 如何切换用户使用networking鸭传输文件到Linux服务器?
  • SFTP不工作
  • 通过scp检查大小和名称
  • SSH连接到VPN的两端不工作
  • GUI工具在Mac OS X Server中configurationSFTP?
  • 安全的SFTP访问DEBIAN Lenny
  • 为什么SFTP网桥太痛苦了?

  • © 2017 服务器 Gind.cn
  • Topics
  •        
  • Powered by Server
  • Privacy Policy