OpenSSH≥4.8支持
ChrootDirectory指令。
添加到
/etc/sshd_config或
/etc/ssh/sshd_config安装程序的全局
sshd配置文件为:
Match user ben_files # The following two directives force ben_files to become chrooted # and only have sftp available. No other chroot setup is required. ChrootDirectory /var/www/vhosts/mydomain.com/files ForceCommand internal-sftp # For additional paranoia, disallow all types of port forwardings. AllowTcpForwarding no GatewayPorts no X11Forwarding no
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)