
sftp 限制用户目录访问
sftp 登录到指定目录 修改 sshd 配置: /etc/ssh/sshd_config #Subsystem sftp /usr/lib/openssh/sftp-server Subsystem sftp internal-sftp #修改为internal-sftp # Example of overriding settings on a per-user basis #Match User anoncvs # X11Forwarding no # AllowTcpForwarding no # PermitTTY no # ForceCommand cvs server Match User test ChrootDirectory /sftpdata/test X11Forwarding no AllowTcpForwarding no PermitTTY no ForceCommand internal-sftp #指定sftp命令,ssh不可以登录 Match Group sftpgroup... » read more