For SFTP to run in the chroot environment, set the Subsystem config option in the sshd_config file as follows.
为了在chroot环境中运行SFTP,要在sshd_config文件中设置Subsystem配置选项,如下所示。
This structure defines a new config entry (through the config keyword) and then the config option (CONFIG_NEWCMD).
这个结构定义了一个新配置项(通过config关键字)以及一个配置选项(CONFIG_NEWCMD)。
A new config option, ChrootDirectory, is included in the sshd_config file that specifies the path to chroot after authentication.
sshd_config文件中增加了一个新的配置选项ChrootDirectory,它指定身份验证之后chroot的路径。
应用推荐