linux sftp限速,linux – SFTP文件限制

从sshd_config手册页:

ChrootDirectory

Specifies a path to chroot(2) to after authentication. This

path, and all its components, must be root-owned directories that

are not writable by any other user or group. After the chroot,

sshd(8) changes the working directory to the user's home directo-

ry.

The path may contain the following tokens that are expanded at

runtime once the connecting user has been authenticated: %% is

replaced by a literal '%', %h is replaced by the home directory

of the user being authenticated, and %u is replaced by the user-

name of that user.

The ChrootDirectory must contain the necessary files and directo-

ries to support the user's session. For an interactive session

this requires at least a shell, typically sh(1), and basic /dev

nodes such as null(4), zero(4), stdin(4), stdout(4), stderr(4),

arandom(4) and tty(4) devices. For file transfer sessions using

``sftp'', no additional configuration of the environment is nec-

essary if the in-process sftp server is used, though sessions

which use logging do require /dev/log inside the chroot directory

(see sftp-server(8) for details).

The default is not to chroot(2).

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值