服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. SFTP ssh
  3. openssh-server:ChrootDirectory不允许在一个Match块中
Intereting Posts
Office Communicator 2007 R2中的Outlook 2010(x64)中的对话历史logging Ubuntu 14.04服务器 – 内存不足(OOM杀手) – 是什么导致我的内存问题/泄漏? SSH失败的密码login – 日志密码 思科ASA:根据客户端IP /子网外部端口转发到不同的IP Fail2ban不能在Ubuntu上运行 厨师引导ec2 – 在另一个厨师客户端的configuration中使用结果IP 对于包含不同SPF条目的单个域有多个TXTlogging是否可以? IIS 7.5redirect/ URL重写到移动版本的网站 我如何强制合并pg_xlog中的所有WAL文件到我的基本“数据”目录中? 使用pfSense,Varnish和Tomcat实现HTTPS 使用非对称密钥对向MySQL进行身份validation Mikrotik dst-nat超时 添加到:标题传入邮件使用hMail服务器 Sun GRID Engine – 提交“偏好强大”机器的作业,而不是较弱的机器 普通用户在做

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