服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. SFTP ssh
  3. openssh-server:ChrootDirectory不允许在一个Match块中
Intereting Posts
Novell iPrint客户端延迟Windowslogin 如何将Ubuntu Hardy(8.04)上的OpenSSH Server从v4.7升级到CURRENT? 如何将新的虚拟用户添加到DB4格式的现有VSFTPD虚拟用户数据库? 有可能logging绑定失败? Exim on Centos – configurationgmail smtp 使用pam_mountconfigurationPAM; 得到一个HX_Init错误的dlopen() 无法从MXlogging的外部服务器接收本地服务器中的邮件 有关站点托pipe和域上stream量转发的初级问题 在Debian安装过程中如何回答“scan another CD”提示? Windows服务在本地运行文件,但在服务器上运行 读取/ proc / mdstat https延迟TIME_WAIT连接 DNS服务器closures不能接收谷歌应用程序的电子邮件 巨大的城堡日志文件 如何从USMT为大量PC调用scanstate?

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